[vlc-devel] [PATCH] demux: ts: fix MPGA and ADTS probing
    Francois Cartegnie 
    fcvlcdev at free.fr
       
    Thu Mar 11 12:34:36 UTC 2021
    
    
  
Le 11/03/2021 à 13:21, Michael Kaufmann a écrit :
>>          pid->probed.i_cat = AUDIO_ES;
>>          if( p_data[0] == 0xFF && (p_data[1] & 0xE0) == 0xE0 &&
>> -           (p_data[1] & 0x0C) != 0x04 && (p_data[1] & 0x03) == 0x00 )
>> +           (p_data[1] & 0x18) != 0x08 && (p_data[1] & 0x06) != 0x00 )
>>          {
>>              pid->probed.i_fourcc = VLC_CODEC_MPGA;
>>          }
ok for both reserved values check
>> -        else if( p_data[0] == 0xFF && (p_data[1] & 0xF2) == 0xF0 )
>> +        else if( p_data[0] == 0xFF && (p_data[1] & 0xF6) == 0xF0 )
>>          {
>>              pid->probed.i_fourcc = VLC_CODEC_MP4A; /* ADTS */
>>              pid->probed.i_original_fourcc = VLC_FOURCC('A','D','T','S');
ok, matching the other modules probing
-- 
Francois Cartegnie
VideoLAN - VLC Developer
    
    
More information about the vlc-devel
mailing list