[Ffmpeg-cvslog] r7902 - in trunk/libavformat: mpegts.c mpegts.h

nicodvb subversion
Fri Feb 9 21:34:25 CET 2007


Author: nicodvb
Date: Fri Feb  9 21:34:24 2007
New Revision: 7902

Modified:
   trunk/libavformat/mpegts.c
   trunk/libavformat/mpegts.h

Log:
demux VC1 in mpegts

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	(original)
+++ trunk/libavformat/mpegts.c	Fri Feb  9 21:34:24 2007
@@ -503,6 +503,7 @@
         case STREAM_TYPE_VIDEO_MPEG2:
         case STREAM_TYPE_VIDEO_MPEG4:
         case STREAM_TYPE_VIDEO_H264:
+        case STREAM_TYPE_VIDEO_VC1:
         case STREAM_TYPE_AUDIO_AAC:
         case STREAM_TYPE_AUDIO_AC3:
         case STREAM_TYPE_AUDIO_DTS:
@@ -813,7 +814,7 @@
                     code = pes->header[3] | 0x100;
                     if (!((code >= 0x1c0 && code <= 0x1df) ||
                           (code >= 0x1e0 && code <= 0x1ef) ||
-                          (code == 0x1bd)))
+                          (code == 0x1bd) || (code == 0x1fd)))
                         goto skip;
                     if (!pes->st) {
                         /* allocate stream */
@@ -921,6 +922,10 @@
         codec_type = CODEC_TYPE_VIDEO;
         codec_id = CODEC_ID_H264;
         break;
+    case STREAM_TYPE_VIDEO_VC1:
+        codec_type = CODEC_TYPE_VIDEO;
+        codec_id = CODEC_ID_VC1;
+        break;
     case STREAM_TYPE_AUDIO_AAC:
         codec_type = CODEC_TYPE_AUDIO;
         codec_id = CODEC_ID_AAC;

Modified: trunk/libavformat/mpegts.h
==============================================================================
--- trunk/libavformat/mpegts.h	(original)
+++ trunk/libavformat/mpegts.h	Fri Feb  9 21:34:24 2007
@@ -46,6 +46,7 @@
 #define STREAM_TYPE_AUDIO_AAC       0x0f
 #define STREAM_TYPE_VIDEO_MPEG4     0x10
 #define STREAM_TYPE_VIDEO_H264      0x1b
+#define STREAM_TYPE_VIDEO_VC1       0xea
 
 #define STREAM_TYPE_AUDIO_AC3       0x81
 #define STREAM_TYPE_AUDIO_DTS       0x8a




More information about the ffmpeg-cvslog mailing list