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:
Andreas Rheinhardt 2020-09-03 19:44:44 +02:00
parent 4e012fc8af
commit 8821023b15
1 changed files with 0 additions and 1 deletions

View File

@ -418,7 +418,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
return 0;
memfail:
av_packet_unref(pkt);
av_freep(&buf2);
av_freep(&state);
av_freep(&zero);