This only affected demuxers that didn't return reference counted packets. Signed-off-by: James Almer <jamr...@gmail.com> --- libavformat/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c index 2c2ea876b6..72531d4185 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -869,9 +869,9 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt) if (!pkt->buf) { AVPacket tmp = { 0 }; - ret = av_packet_ref(&tmp, pkt); - if (ret < 0) - return ret; + err = av_packet_ref(&tmp, pkt); + if (err < 0) + return err; *pkt = tmp; } -- 2.16.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel