On 17/12/2016 18:17, Anton Khirnov wrote: > For field picture, the first_field is set based on its previous value. > Before this commit, first_field is set when reading the picture > coding extension. However, in corrupted files there may be multiple > picture coding extension headers, so the final value of first_field that > is actually used during decoding can be wrong. That can lead to various > undefined behaviour, like predicting from a non-existing field. > > Fix this problem, by setting first_field in mpeg_field_start(), which > should be called exactly once per field. > > CC: libav-sta...@libav.org > Bug-ID: 999 > --- > libavcodec/mpeg12dec.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >
Seems fine. _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel