[vlc] add additional private mpeg ES type?

Phil Pishioneri pgp1 at cornell.edu
Fri Mar 7 01:05:01 CET 2003


We have a Motorola Digicipher II receiver from which we're multicasting 
some content.  The stream is almost a regular MPEG-2 stream, except that 
it uses one of the private stream types (0x80) to identify the video part.

I have small updates to two files (appended below) which allow vlc to 
decode it.  Would you be interested in merging these into the distribution?

Thanks (and thanks for software),
-Phil

diff -u -r1.1 modules/demux/mpeg/system.h
--- modules/demux/mpeg/system.h 2003/03/06 23:10:42     1.1
+++ modules/demux/mpeg/system.h 2003/03/06 23:39:02
@@ -51,6 +51,7 @@
 #define MPEG4_VIDEO_ES      0x10
 #define MPEG4_AUDIO_ES      0x11

+#define MOTOROLA_VIDEO_ES   0x80
 #define A52_AUDIO_ES        0x81
 /* These ones might violate the usage : */
 #define DVD_SPU_ES          0x82


diff -u -r1.1 modules/demux/mpeg/ts.c
--- modules/demux/mpeg/ts.c     2003/03/06 23:39:46     1.1
+++ modules/demux/mpeg/ts.c     2003/03/06 23:41:40
@@ -641,6 +641,7 @@
                     {
                         case MPEG1_VIDEO_ES:
                         case MPEG2_VIDEO_ES:
+                        case MOTOROLA_VIDEO_ES:
                             /* This isn't real, but we don't actually use
                              * it. */
                             p_new_es->i_stream_id = 0xE0;
@@ -1295,6 +1296,7 @@
             {
                 case MPEG1_VIDEO_ES:
                 case MPEG2_VIDEO_ES:
+                case MOTOROLA_VIDEO_ES:
                     p_new_es->i_fourcc = VLC_FOURCC('m','p','g','v');
                     p_new_es->i_cat = VIDEO_ES;
                     break;




-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list