diff options
Diffstat (limited to 'libavformat/vpk.c')
-rw-r--r-- | libavformat/vpk.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/vpk.c b/libavformat/vpk.c index 255d6030b0..dd9aeb6101 100644 --- a/libavformat/vpk.c +++ b/libavformat/vpk.c @@ -93,9 +93,7 @@ static int vpk_read_packet(AVFormatContext *s, AVPacket *pkt) ret = avio_read(s->pb, pkt->data + i * size, size); avio_skip(s->pb, skip); if (ret != size) { - av_packet_unref(pkt); - ret = AVERROR(EIO); - break; + return AVERROR(EIO); } } pkt->stream_index = 0; |