lavf/id3v2: fail read_apic on EOF reading mimetype
authorchcunningham <chcunningham@chromium.org>
Fri, 14 Dec 2018 21:44:07 +0000 (13:44 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 17 Dec 2018 17:30:10 +0000 (18:30 +0100)
commitee1e39a576977fd38c3b94fc56125d31d38833e9
tree8ba556997caa78a6c670d044d0cf52a51beedcb4
parent826655d8d11749f521f517a8091eccbf2d516c34
lavf/id3v2: fail read_apic on EOF reading mimetype

avio_read may return EOF, leaving the mimetype array unitialized. fail
early when this occurs to avoid using the array in an unitialized state.

Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/id3v2.c