You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
vc1: Do not assume seek happens after decoding
If a seek is requested before the decoding start there is no current picture. CC: libav-stable@libav.org
This commit is contained in:
@ -5503,7 +5503,7 @@ static void vc1_sprite_flush(AVCodecContext *avctx)
|
|||||||
Since we can't enforce it, clear to black the missing sprite. This is
|
Since we can't enforce it, clear to black the missing sprite. This is
|
||||||
wrong but it looks better than doing nothing. */
|
wrong but it looks better than doing nothing. */
|
||||||
|
|
||||||
if (f->data[0])
|
if (f && f->data[0])
|
||||||
for (plane = 0; plane < (s->flags&CODEC_FLAG_GRAY ? 1 : 3); plane++)
|
for (plane = 0; plane < (s->flags&CODEC_FLAG_GRAY ? 1 : 3); plane++)
|
||||||
for (i = 0; i < v->sprite_height>>!!plane; i++)
|
for (i = 0; i < v->sprite_height>>!!plane; i++)
|
||||||
memset(f->data[plane] + i * f->linesize[plane],
|
memset(f->data[plane] + i * f->linesize[plane],
|
||||||
|
Reference in New Issue
Block a user