summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorMean <fixounet@free.fr>2011-11-02 19:35:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-02 20:32:59 +0100
commitd1590a0a2be7c07ee6d7d81803e895173e38227d (patch)
tree5908ac4c9f01be4e73df7a4622b05bb5c9bd9628 /libavcodec/vc1dec.c
parentf51e5015ad76e5fae57e34712f6a6e4f0f8b2204 (diff)
downloadffmpeg-d1590a0a2be7c07ee6d7d81803e895173e38227d.tar.gz
vc1dec: Fix CODEC_FLAG_LOW_DELAY
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 8384771ad9..64f187cd94 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5457,6 +5457,9 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
int mby_start;
} *slices = NULL;
+ if(s->flags & CODEC_FLAG_LOW_DELAY)
+ s->low_delay = 1;
+
/* no supplementary picture */
if (buf_size == 0 || (buf_size == 4 && AV_RB32(buf) == VC1_CODE_ENDOFSEQ)) {
/* special case for last picture */