ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | 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 <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]> > 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); _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
