On 05/12/15 12:12, Anton Khirnov wrote: > According to the spec, the reference list for a slice should be > constructed by first generating an initial (what we now call "default") > reference list and then optionally applying modifications to it. > > Our code has an optimization where the initial reference list is > constructed for the first inter slice and then rebuilt for other slices > if needed. This, however, adds complexity to the code, requires an extra > 2.5kB array in the codec context and there is no reason to think that it > has any positive effect on performance. Therefore, simplify the code by > generating the reference list from scratch for each slice. > --- > Now actually removing the array > --- > libavcodec/h264.h | 2 -- > libavcodec/h264_refs.c | 46 +++++++++++++++++++++------------------------- > libavcodec/h264_slice.c | 18 +----------------- > 3 files changed, 22 insertions(+), 44 deletions(-)
Fine by me. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
