avformat/flacdec: Check avio_read result when reading flac block header.
authorFrank Liberato <liberato@chromium.org>
Tue, 24 Jan 2017 18:58:17 +0000 (10:58 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 20:17:51 +0000 (21:17 +0100)
commitd59582a567cf1eca7f99b8f7586afdf721ff1e1d
tree828ab508d98e108f4fc18ce96fff30f092deae4a
parent17a9e90d1f897b70f38a15aeabea089a334bb477
avformat/flacdec: Check avio_read result when reading flac block header.

Return AVERROR_INVALIDDATA if all four bytes aren't present.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 95bde49982a82bc10470c0adab5969ffe635d064)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/flacdec.c