summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-03-02 11:17:33 +0000
committerMans Rullgard <mans@mansr.com>2011-03-02 13:32:58 +0000
commitfb985071263e6b3daff1c3d987df482b0146c2a0 (patch)
tree6bc5ac933b07e875e512dd550696ae237365e689
parent5e33e7bdac70a4b70e31f4ae6f0344060346d0b8 (diff)
vc1: fix decoding when end sequence is present
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index ed92d8cadd..b27b6d01c1 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -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;