mxfdec: allow container_ul to override codec_ul if codec is A-law
authorMarton Balint <cus@passwd.hu>
Wed, 26 Sep 2012 22:24:46 +0000 (00:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 27 Sep 2012 19:28:35 +0000 (21:28 +0200)
commit13f0cd681e9308efe68802ab03e7443863b4c54f
treedd3a0eeb73bd6c18a33ae47f63ce707077a1258c
parent6226d104a327733ef8591148ba84ac8a6820bd04
mxfdec: allow container_ul to override codec_ul if codec is A-law

Fixes some DNXHD files generated by AVID TM, where codec UL was set to A-law
meanwhile the real audio codec was PCM S16. According to SMPTE RP 224, A-law is
the default value for sound essence parameters therefore we should handle it
specially.

Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mxfdec.c