# HG changeset patch # User kostya # Date 1158034380 0 # Node ID e7f4366d97311c283b78eb5a9ef4dfd762833393 # Parent fb73a0142544ca2eccae9e93ba1ec45882c3836d 2989l: Set avctx->has_b_frames value in header and don't change it diff -r fb73a0142544 -r e7f4366d9731 vc1.c --- a/vc1.c Mon Sep 11 23:29:24 2006 +0000 +++ b/vc1.c Tue Sep 12 04:13:00 2006 +0000 @@ -4085,6 +4085,7 @@ 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 @@ 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;