[FFmpeg-cvslog] avcodec/jpeglsenc: Remove redundant av_packet_unref()
Andreas Rheinhardt
git at videolan.org
Sat Sep 5 17:26:00 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Thu Sep 3 19:44:44 2020 +0200| [8821023b156496a27395e9c46b8b969512d1de63] | committer: Andreas Rheinhardt
avcodec/jpeglsenc: Remove redundant av_packet_unref()
If encoding fails, the AVPacket that ought to contain the encoded packet
is already unreferenced generically.
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8821023b156496a27395e9c46b8b969512d1de63
---
libavcodec/jpeglsenc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c
index 5ecd430db7..0725457a94 100644
--- a/libavcodec/jpeglsenc.c
+++ b/libavcodec/jpeglsenc.c
@@ -418,7 +418,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
return 0;
memfail:
- av_packet_unref(pkt);
av_freep(&buf2);
av_freep(&state);
av_freep(&zero);
More information about the ffmpeg-cvslog
mailing list