diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-08 01:56:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-08 02:03:40 +0200 |
commit | 829e43017fa733479a72e6518bb9c1f0da441dc5 (patch) | |
tree | 3aed439a815c447314574ea29481938ea1f76e97 /libavcodec/vc1dec.c | |
parent | 8d14e1d64ee1780f839e05c22fc633b3cf1b8579 (diff) | |
parent | 494f2d4f9e834db1eaf1a7d0160d497f9802013d (diff) | |
download | ffmpeg-829e43017fa733479a72e6518bb9c1f0da441dc5.tar.gz |
Merge commit '494f2d4f9e834db1eaf1a7d0160d497f9802013d' into release/1.1
* commit '494f2d4f9e834db1eaf1a7d0160d497f9802013d':
vc1dec: Make sure last_picture is initialized in vc1_decode_skip_blocks
r3d: Add more input value validation
fraps: Make the input buffer size checks more strict
svq3: Avoid a division by zero
rmdec: Validate the fps value
twinvqdec: Check the ibps parameter separately
asfdec: Check the return value of asf_read_stream_properties
mxfdec: set audio timebase to 1/samplerate
Conflicts:
libavcodec/fraps.c
libavcodec/svq3.c
libavformat/mxfdec.c
tests/ref/fate/mxf-demux
tests/ref/seek/lavf-mxf
tests/ref/seek/lavf-mxf_d10
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index f604c2937f..01d09efd62 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -4750,6 +4750,9 @@ static void vc1_decode_skip_blocks(VC1Context *v) { MpegEncContext *s = &v->s; + if (!v->s.last_picture.f.data[0]) + return; + ff_er_add_slice(s, 0, s->start_mb_y, s->mb_width - 1, s->end_mb_y - 1, ER_MB_END); s->first_slice_line = 1; for (s->mb_y = s->start_mb_y; s->mb_y < s->end_mb_y; s->mb_y++) { |