mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/id3v2: Check avio_read() return value in read_chapter()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
460f8fca9c
commit
ffbcb1c6f0
@ -544,7 +544,8 @@ static void read_chapter(AVFormatContext *s, AVIOContext *pb, int len, char *tta
|
|||||||
|
|
||||||
len -= 16;
|
len -= 16;
|
||||||
while (len > 10) {
|
while (len > 10) {
|
||||||
avio_read(pb, tag, 4);
|
if (avio_read(pb, tag, 4) < 4)
|
||||||
|
goto end;
|
||||||
tag[4] = 0;
|
tag[4] = 0;
|
||||||
taglen = avio_rb32(pb);
|
taglen = avio_rb32(pb);
|
||||||
avio_skip(pb, 2);
|
avio_skip(pb, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user