[FFmpeg-devel] [PATCH] H264 in TS detection

Michael Niedermayer michaelni
Sat Jul 26 21:01:44 CEST 2008


Hi

maybeH264_dumpstream 
(see ftp and [FFmpeg-devel] Unplayable "JVT NAL" sequence)
Contains a H.264 stream that is missdetected as mpeg1video.
Patch below fixes it, i intend to apply it in 24h if there are no objections
from mans.

Index: libavformat/mpegts.c
===================================================================
--- libavformat/mpegts.c	(revision 14235)
+++ libavformat/mpegts.c	(working copy)
@@ -970,7 +970,7 @@
             codec_id = CODEC_ID_AC3;
         } else {
             codec_type = CODEC_TYPE_VIDEO;
-            codec_id = CODEC_ID_MPEG1VIDEO;
+            codec_id = CODEC_ID_PROBE;
         }
         break;
     }


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080726/e112a531/attachment.pgp>



More information about the ffmpeg-devel mailing list