changeset 3576:270e9f324405 libavformat

Use CODEC_ID_PROBE when the mpeg-ps demuxer does not know exactly which video codec is used. Fixes issue49 Departed Trailer.evo (mpeg ps missdetecting h264 as mpeg2video)
author michael
date Sat, 12 Jul 2008 22:17:13 +0000
parents 3f8b95c0cc03
children c1762e7b1ff3
files mpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg.c	Sat Jul 12 20:40:47 2008 +0000
+++ b/mpeg.c	Sat Jul 12 22:17:13 2008 +0000
@@ -459,7 +459,7 @@
         if(!memcmp(buf, avs_seqh, 4) && (buf[6] != 0 || buf[7] != 1))
             codec_id = CODEC_ID_CAVS;
         else
-            codec_id = CODEC_ID_MPEG2VIDEO;
+            codec_id = CODEC_ID_PROBE;
         type = CODEC_TYPE_VIDEO;
     } else if (startcode >= 0x1c0 && startcode <= 0x1df) {
         type = CODEC_TYPE_AUDIO;