提交 8821023b 编写于 作者: A 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: NPaul B Mahol <onemda@gmail.com>
Signed-off-by: NAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
上级 4e012fc8
......@@ -418,7 +418,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
return 0;
memfail:
av_packet_unref(pkt);
av_freep(&buf2);
av_freep(&state);
av_freep(&zero);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册