ffmdec: validate sample_rate
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 23 Oct 2016 14:05:01 +0000 (16:05 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 6 Nov 2016 23:51:49 +0000 (00:51 +0100)
commit0009457dc09739685ee192c90d6691e1663c8b9c
tree3e9c15fa726ccb14e6739f34e689960f2758957b
parent872fcfcc0f01230ef761e286b0c6a18817e0a162
ffmdec: validate sample_rate

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

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