mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/thp: check av_get_packet() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
69aa79365c
commit
dc3c3758ce
@ -176,6 +176,8 @@ static int thp_read_packet(AVFormatContext *s,
|
||||
thp->frame++;
|
||||
|
||||
ret = av_get_packet(pb, pkt, size);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (ret != size) {
|
||||
av_free_packet(pkt);
|
||||
return AVERROR(EIO);
|
||||
|
Loading…
Reference in New Issue
Block a user