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>
pull/350/head
Andreas Rheinhardt 4 years ago
parent 4e012fc8af
commit 8821023b15
  1. 1
      libavcodec/jpeglsenc.c

@ -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…
Cancel
Save