diff aac_ac3_parser.c @ 8977:82ab0b77695b libavcodec

Allow AC-3 parser to modify codec_id. Patch by Joakim Plate (elupus A ecce D se).
author jbr
date Thu, 19 Feb 2009 00:28:19 +0000
parents 04423b2f6e0b
children ba5d9a97ab2f
line wrap: on
line diff
--- a/aac_ac3_parser.c	Thu Feb 19 00:28:08 2009 +0000
+++ b/aac_ac3_parser.c	Thu Feb 19 00:28:19 2009 +0000
@@ -72,6 +72,9 @@
 
     /* update codec info */
     avctx->sample_rate = s->sample_rate;
+    if(s->codec_id)
+        avctx->codec_id = s->codec_id;
+
     /* allow downmixing to stereo (or mono for AC-3) */
     if(avctx->request_channels > 0 &&
             avctx->request_channels < s->channels &&