comparison h264.c @ 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 d1238ea3db6f
children fdc0db1e0087
comparison
equal deleted inserted replaced
9074:0e2f21d65473 9075:6366106bd493
2186 s->workaround_bugs= avctx->workaround_bugs; 2186 s->workaround_bugs= avctx->workaround_bugs;
2187 2187
2188 // set defaults 2188 // set defaults
2189 // s->decode_mb= ff_h263_decode_mb; 2189 // s->decode_mb= ff_h263_decode_mb;
2190 s->quarter_sample = 1; 2190 s->quarter_sample = 1;
2191 if(!avctx->has_b_frames)
2191 s->low_delay= 1; 2192 s->low_delay= 1;
2192 2193
2193 if(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) 2194 if(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)
2194 avctx->pix_fmt= PIX_FMT_VDPAU_H264; 2195 avctx->pix_fmt= PIX_FMT_VDPAU_H264;
2195 else 2196 else