summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-16 23:02:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-16 23:02:33 +0000
commite25f97313f362dd769bc6200f3a9665f1ff17d49 (patch)
treeb2baf47499578055149d1703f3a75e4e927d57c4 /libavformat/utils.c
parentbefe3b05d3d326073ea0a61da795e0c817904525 (diff)
remove silly video check, theres nothing video specific in there
Originally committed as revision 8425 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index f8548cd58c..d13700edb8 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -600,7 +600,6 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
/* 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 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
/* 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;