# HG changeset patch # User michael # Date 1174086153 0 # Node ID 83a496207fb589217c8801870776b9eea5c7233f # Parent 59d394f558b8e8b22c7e7cffe0fe3feb2eb0d376 remove silly video check, theres nothing video specific in there diff -r 59d394f558b8 -r 83a496207fb5 utils.c --- a/utils.c Fri Mar 16 22:59:45 2007 +0000 +++ b/utils.c Fri Mar 16 23:02:33 2007 +0000 @@ -600,7 +600,6 @@ /* do we have a video B frame ? */ delay= st->codec->has_b_frames; presentation_delayed = 0; - if (st->codec->codec_type == CODEC_TYPE_VIDEO) { /* XXX: need has_b_frame, but cannot get it if the codec is not initialized */ if (delay && @@ -609,7 +608,6 @@ /* this may be redundant, but it shouldnt hurt */ if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts > pkt->dts) presentation_delayed = 1; - } if(st->cur_dts == AV_NOPTS_VALUE){ st->cur_dts = -delay * pkt->duration;