[Ffmpeg-cvslog] r8425 - trunk/libavformat/utils.c

michael subversion
Sat Mar 17 00:02:33 CET 2007


Author: michael
Date: Sat Mar 17 00:02:33 2007
New Revision: 8425

Modified:
   trunk/libavformat/utils.c

Log:
remove silly video check, theres nothing video specific in there


Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Sat Mar 17 00:02:33 2007
@@ -600,7 +600,6 @@ static void compute_pkt_fields(AVFormatC
     /* 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(AVFormatC
         /* 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;




More information about the ffmpeg-cvslog mailing list