Commit dc3c3758 authored by Paul B Mahol's avatar Paul B Mahol

avformat/thp: check av_get_packet() for failure

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 69aa7936
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment