[vlc] Help: Extra bytes in PES header?

Howard Page howard at seacoms.com
Wed Dec 17 00:49:09 CET 2003


Does anyone know why there are extra bytes in the PES header if the 
stream is a PES_PRIVATE_STREAM_1 ?  From: modules/mux/mpeg/pes.c


           /* For PES_PRIVATE_STREAM_1 there is an extra header after the
                 pes header */
               if( i_stream_id == PES_PRIVATE_STREAM_1 )
               {
                   i_extra = 1;
                   if( ( i_private_id&0xf8 ) == 0x80 )
                   {
                       i_extra += 3;
                   }
               }

and modules/demux/mpeg/system.c:

         /* Welcome to the kludge area ! --Meuuh */
         if ( p_es->i_fourcc == VLC_FOURCC('a','5','2','b') )
         {
             /* With A/52 audio, we need to skip the first 4 bytes */
             i_pes_header_size += 4;
         }

         if ( p_es->i_fourcc == VLC_FOURCC('l','p','c','b')
               || p_es->i_fourcc == VLC_FOURCC('s','p','u','b')
               || p_es->i_fourcc == VLC_FOURCC('d','t','s','b')
               || p_es->i_fourcc == VLC_FOURCC('s','d','d','b') )
         {
             /* stream_private_id */
             i_pes_header_size += 1;
         }


Thanks!


Regards,

Howard

-- 
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