Allow AC-3 parser to modify codec_id.
Patch by Joakim Plate (elupus A ecce D se). Originally committed as revision 17447 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Justin Ruggles
parent
3899eb2f65
commit
4cff8dc88f
@@ -72,6 +72,9 @@ get_next:
|
||||
|
||||
/* 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 &&
|
||||
|
||||
Reference in New Issue
Block a user