Commit 0cc4cff2 authored by michael's avatar michael

remove silly video check, theres nothing video specific in there


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8425 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 824319ea
...@@ -600,7 +600,6 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, ...@@ -600,7 +600,6 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
/* do we have a video B frame ? */ /* do we have a video B frame ? */
delay= st->codec->has_b_frames; delay= st->codec->has_b_frames;
presentation_delayed = 0; presentation_delayed = 0;
if (st->codec->codec_type == CODEC_TYPE_VIDEO) {
/* XXX: need has_b_frame, but cannot get it if the codec is /* XXX: need has_b_frame, but cannot get it if the codec is
not initialized */ not initialized */
if (delay && if (delay &&
...@@ -609,7 +608,6 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, ...@@ -609,7 +608,6 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
/* this may be redundant, but it shouldnt hurt */ /* this may be redundant, but it shouldnt hurt */
if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts > pkt->dts) if(pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts > pkt->dts)
presentation_delayed = 1; presentation_delayed = 1;
}
if(st->cur_dts == AV_NOPTS_VALUE){ if(st->cur_dts == AV_NOPTS_VALUE){
st->cur_dts = -delay * pkt->duration; st->cur_dts = -delay * pkt->duration;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment