latmdec: fix audio specific config parsing
Pass the correct size in bits to mpeg4audio_get_config and add a flag to disable parsing of the sync extension when the size is not known. Latm with AudioMuxVersion 0 does not specify the size of the audio specific config. Data after the audio specific config can be misinterpreted as sync extension resulting in random and wrong configs.
Showing
- libavcodec/aacdec.c 22 additions, 13 deletionslibavcodec/aacdec.c
- libavcodec/alsdec.c 1 addition, 1 deletionlibavcodec/alsdec.c
- libavcodec/mpeg4audio.c 4 additions, 3 deletionslibavcodec/mpeg4audio.c
- libavcodec/mpeg4audio.h 5 additions, 2 deletionslibavcodec/mpeg4audio.h
- libavcodec/mpegaudiodec.c 2 additions, 1 deletionlibavcodec/mpegaudiodec.c
- libavformat/adtsenc.c 1 addition, 1 deletionlibavformat/adtsenc.c
- libavformat/flvdec.c 1 addition, 1 deletionlibavformat/flvdec.c
- libavformat/isom.c 1 addition, 1 deletionlibavformat/isom.c
- libavformat/latmenc.c 1 addition, 1 deletionlibavformat/latmenc.c
- libavformat/matroskaenc.c 2 additions, 1 deletionlibavformat/matroskaenc.c
Loading
Please register or sign in to comment