changeset 24836:4e90fdb819b0

replaced giant if() with if(pre-calculated variable) (there was even a bug: PS doesn't necessarily contain mpeg12)
author nicodvb
date Sat, 27 Oct 2007 12:39:53 +0000
parents b6d6af21c2ee
children fdd2cf92f854
files libmpdemux/video.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Sat Oct 27 12:37:26 2007 +0000
+++ b/libmpdemux/video.c	Sat Oct 27 12:39:53 2007 +0000
@@ -611,11 +611,7 @@
       break;
     }
 
-    if(demuxer->file_format==DEMUXER_TYPE_MPEG_PS ||
-       demuxer->file_format==DEMUXER_TYPE_MPEG_PES ||
-       ((demuxer->file_format==DEMUXER_TYPE_MPEG_TS) && ((sh_video->format==0x10000001) || (sh_video->format==0x10000002))) ||
-       demuxer->file_format==DEMUXER_TYPE_MPEG_ES ||
-       demuxer->file_format==DEMUXER_TYPE_MPEG_TY){
+    if(video_codec == VIDEO_MPEG12){
 
 
         sh_video->pts+=frame_time;