From 0ded124fbd14bd1d1533d9b6f96dcb51eea6c122 Mon Sep 17 00:00:00 2001
From: kostya <kostya@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Tue, 12 Sep 2006 04:13:00 +0000
Subject: [PATCH] 2989l: Set avctx->has_b_frames value in header and don't
 change it

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6233 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
---
 libavcodec/vc1.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index f5b9a4088..8521d87e8 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;
-- 
2.25.4