aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-12 02:39:16 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-12 02:39:16 +0000
commit495b37664d90f622d7e1d9f3c098b2f1380555db (patch)
tree55ffe27bdbabdb10dd99c59d0df8591be6f9b059
parent4f1db48e88aad01139878937916603a68eac596c (diff)
downloadffmpeg-495b37664d90f622d7e1d9f3c098b2f1380555db.tar.gz
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
-rw-r--r--libavformat/mpegts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 50d1ffa57b..8530cc867d 100644
--- a/libavformat/mpegts.c
+++ b/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);
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;