X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fbrstm.c;h=ca965ed7e1999f8e76d73a75e0e45bfddeea7aed;hb=4147f63d63358e5c1969bfe431ee08ca54f8434d;hp=1470690731e52aa70552b97a754912940a4cff09;hpb=c1e439d7e9abab3cebdc937636393b1656e095d9;p=ffmpeg diff --git a/libavformat/brstm.c b/libavformat/brstm.c index 1470690731e..ca965ed7e19 100644 --- a/libavformat/brstm.c +++ b/libavformat/brstm.c @@ -422,8 +422,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) dst += size; avio_skip(s->pb, skip); if (ret != size) { - av_packet_unref(pkt); - break; + return AVERROR(EIO); } } pkt->duration = samples;