Commit 7d9050e4 authored by bcoudurier's avatar bcoudurier

Set stream type to ac3 if registration descriptor is present.

Based on patch by Nico Sabi, nicola dot sabbi at poste dot it 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18457 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1e44feb0
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment