mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 01:01:07 +00:00
Set stream type to ac3 if registration descriptor is present.
Based on patch by Nico Sabi, nicola dot sabbi at poste dot it Originally committed as revision 18457 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4f1db48e88
commit
495b37664d
@ -601,6 +601,8 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||
reg_desc = bytestream_get_le32(&p);
|
||||
if(reg_desc == AV_RL32("drac"))
|
||||
has_dirac_descr = 1;
|
||||
else if(reg_desc == AV_RL32("AC-3"))
|
||||
stream_type = STREAM_TYPE_AUDIO_AC3;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user