[FFmpeg-devel] [PATCH] avformat/utils: don't overwrite the return value of read_packet()
James Almer
jamrial at gmail.com
Mon Feb 26 05:19:19 EET 2018
This only affected demuxers that didn't return reference counted packets.
Signed-off-by: James Almer <jamrial at 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
More information about the ffmpeg-devel
mailing list