avcodec/flacdec: Return error code instead of 0 for failures
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 9 May 2017 11:25:34 +0000 (13:25 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Aug 2017 11:15:17 +0000 (13:15 +0200)
commita88859aabb6ef24687457d70783303381e72f879
tree2df711b249d58f4d2cb442083f12e66ac5647b8a
parente34362c6eab1352abf1d3975c900b8937ed17784
avcodec/flacdec: Return error code instead of 0 for failures

Fixes: infinite loop
Fixes: 1418/clusterfuzz-testcase-minimized-5934472438480896

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3f5a68533decdfb4757207e8d7b5af06e1dcd197)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/flacdec.c