Browse Source

avformat/thp: check av_get_packet() for failure

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.6
Paul B Mahol 11 years ago
parent
commit
dc3c3758ce
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/thp.c

+ 2
- 0
libavformat/thp.c View File

@@ -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