mirror of https://git.ffmpeg.org/ffmpeg.git
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;
|
return 0;
|
||||||
|
|
||||||
memfail:
|
memfail:
|
||||||
av_packet_unref(pkt);
|
|
||||||
av_freep(&buf2);
|
av_freep(&buf2);
|
||||||
av_freep(&state);
|
av_freep(&state);
|
||||||
av_freep(&zero);
|
av_freep(&zero);
|
||||||
|
|
Loading…
Reference in New Issue