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:
Baptiste Coudurier 2009-04-12 02:39:16 +00:00
parent 4f1db48e88
commit 495b37664d
1 changed files with 2 additions and 0 deletions

View File

@ -601,6 +601,8 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
reg_desc = bytestream_get_le32(&p); reg_desc = bytestream_get_le32(&p);
if(reg_desc == AV_RL32("drac")) if(reg_desc == AV_RL32("drac"))
has_dirac_descr = 1; has_dirac_descr = 1;
else if(reg_desc == AV_RL32("AC-3"))
stream_type = STREAM_TYPE_AUDIO_AC3;
break; break;
default: default:
break; break;