1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

vc1: fix decoding when end sequence is present

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit fb98507126)
This commit is contained in:
Baptiste Coudurier 2011-03-02 11:17:33 +00:00 committed by Michael Niedermayer
parent d34ffd3ce9
commit 4778b4dd77

View File

@ -3149,7 +3149,7 @@ static int vc1_decode_frame(AVCodecContext *avctx,
const uint8_t *buf_start = buf;
/* no supplementary picture */
if (buf_size == 0) {
if (buf_size == 0 || (buf_size == 4 && AV_RB32(buf) == VC1_CODE_ENDOFSEQ)) {
/* special case for last picture */
if (s->low_delay==0 && s->next_picture_ptr) {
*pict= *(AVFrame*)s->next_picture_ptr;