summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-09-12 04:13:00 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-09-12 04:13:00 +0000
commitf9942ba94bc554d7a8ec1a3fb9a9acc5f323e01c (patch)
treec3eb514f355e2d607b5b93226e8c3cb39a3c3b87
parentaa8f4cee32ab66a5b9ef7aee2207867cabba5420 (diff)
2989l: Set avctx->has_b_frames value in header and don't change it
Originally committed as revision 6233 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/vc1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index f5b9a4088a..8521d87e8a 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -4085,6 +4085,7 @@ static int vc1_decode_init(AVCodecContext *avctx)
return -1;
}
avctx->has_b_frames= !!(avctx->max_b_frames);
+ s->low_delay = !avctx->has_b_frames;
s->mb_width = (avctx->coded_width+15)>>4;
s->mb_height = (avctx->coded_height+15)>>4;
@@ -4145,8 +4146,6 @@ static int vc1_decode_frame(AVCodecContext *avctx,
s->current_picture_ptr= &s->picture[i];
}
- avctx->has_b_frames= !s->low_delay;
-
//for advanced profile we need to unescape buffer
if (avctx->codec_id == CODEC_ID_VC1) {
int i, buf_size2;