avcodec/alac: only set *got_frame_ptr when all channels have been decoded
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 03:36:15 +0000 (04:36 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 03:37:27 +0000 (04:37 +0100)
commite11983bda073f8c63f60509ee753da9fba20ed10
treef146e375adc13fdc5f8bf8350f355b5f7d75159b
parent9d5cc55f0fdf1f7b7dd729d7befb45923c0de181
avcodec/alac: only set *got_frame_ptr when all channels have been decoded

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f8b64436530_7895_quicktime_newcodec_applelosslessaudiocodec.m4a
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alac.c