avformat/thp: check av_get_packet() for failure

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/115/head^2
Paul B Mahol 10 years ago
parent 69aa79365c
commit dc3c3758ce
  1. 2
      libavformat/thp.c

@ -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…
Cancel
Save