A negative sample rate causes assertion failures in av_rescale_rnd. Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> --- libavformat/brstm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/brstm.c b/libavformat/brstm.c index 4ac9881..bbdbcef 100644 --- a/libavformat/brstm.c +++ b/libavformat/brstm.c @@ -205,7 +205,7 @@ static int read_header(AVFormatContext *s) avio_skip(s->pb, 1); // padding st->codec->sample_rate = bfstm ? read32(s) : read16(s); - if (!st->codec->sample_rate) + if (st->codec->sample_rate <= 0) return AVERROR_INVALIDDATA; if (!bfstm) -- 2.6.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel