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
release/0.6
Baptiste Coudurier 16 years ago
parent 4f1db48e88
commit 495b37664d
  1. 2
      libavformat/mpegts.c

@ -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;

Loading…
Cancel
Save