riffdec: Add sanity checks for the sample rate
authorMartin Storsjö <martin@martin.st>
Sat, 28 Sep 2013 20:32:39 +0000 (23:32 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 29 Sep 2013 16:58:18 +0000 (19:58 +0300)
commitd07aa3f02b73ab1371c13ac7898338380ca0932b
treef341784a8135917b83b2be50051f660d074a1597
parent28ff439efd2362fb21e1a78610737f2e26a72d8f
riffdec: Add sanity checks for the sample rate

This avoids a division by zero for G726.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/riffdec.c