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>
Fri, 3 Feb 2017 14:59:14 +0000 (15:59 +0100)
commit44eaff5e6d659c4104b0be7ae7222e665666d315
treeaa3e84efb3fa82064ff134234de239ee8c0fc54a
parentcfbab858094b134ed8750bae6d75a55425fd7ede
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