On Fri, Jul 8, 2016 at 3:47 AM, Janne Grunau <[email protected]> wrote: > Fixes a regression in ca2f19b9cc3 with some mov/mp4 files. The files have > several NAL units in the supposed single NAL unit after the size field. > Annex B start code prefixes are used to separate them. The first NAL unit > is correctly parsed but the buffer does not point to the next size field. > Instead semi random data (it seems to be the rbsp_stop_one_bit and the > start code prefix) is then parsed as length and will exceed the > remaining length of the buffer. > > Patch based on the code in h264's decode_nal_units() and a similar > patch by Hendrik Leppkes in FFmpeg (a9bb4cf87d1). > > Bug-Id: ffmpeg/trac5529 > Reported-By: Vittorio Giovara > --- > libavcodec/h2645_parse.c | 46 ++++++++++++++++++++++++++++++++++------------ > 1 file changed, 34 insertions(+), 12 deletions(-) >
Ok and thanks for looking at this -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
