Commit 495b3766 authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

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
parent 4f1db48e
......@@ -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