mpeg4audio: validate sample_rate
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 23 Oct 2016 15:03:04 +0000 (17:03 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 6 Nov 2016 23:51:49 +0000 (00:51 +0100)
commit074775462283e59657fbd18e76435371a2b80fda
treee3385e95cba3296504c93e34f38f9e2429c22bfe
parent9d36602abc4ef5b69b92feadf868c77e5e9ccc7d
mpeg4audio: validate sample_rate

A negative sample rate doesn't make sense and triggers assertions in
av_rescale_rnd.

Also check for errors from avpriv_mpeg4audio_get_config in
ff_mp4_read_dec_config_descr.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/mpeg4audio.c
libavformat/isom.c