changeset 9075:6366106bd493 libavcodec

Do not set low_delay if has_b_frames has been set before init() this will be needed once the parser can figure out has_b_frames in av_find_stream_info().
author michael
date Sun, 01 Mar 2009 03:13:04 +0000
parents 0e2f21d65473
children 4557a8635262
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sun Mar 01 00:23:05 2009 +0000
+++ b/h264.c	Sun Mar 01 03:13:04 2009 +0000
@@ -2188,6 +2188,7 @@
     // set defaults
 //    s->decode_mb= ff_h263_decode_mb;
     s->quarter_sample = 1;
+    if(!avctx->has_b_frames)
     s->low_delay= 1;
 
     if(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)