mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
4e012fc8af
commit
8821023b15
@ -418,7 +418,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
return 0;
|
||||
|
||||
memfail:
|
||||
av_packet_unref(pkt);
|
||||
av_freep(&buf2);
|
||||
av_freep(&state);
|
||||
av_freep(&zero);
|
||||
|
Loading…
Reference in New Issue
Block a user