mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-05 16:57:44 +08:00
fixup! lavc/rkmppdec: refactor RKMPP decoders and extend codecs
fix decoder options printing buffer not being freed. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -857,6 +857,8 @@ static int rkmpp_get_frame(AVCodecContext *avctx, AVFrame *frame, int timeout)
|
|||||||
|
|
||||||
if (av_opt_serialize(r, 0, 0, &opts, '=', ' ') >= 0)
|
if (av_opt_serialize(r, 0, 0, &opts, '=', ' ') >= 0)
|
||||||
av_log(avctx, AV_LOG_VERBOSE, "Decoder options: %s\n", opts);
|
av_log(avctx, AV_LOG_VERBOSE, "Decoder options: %s\n", opts);
|
||||||
|
if (opts)
|
||||||
|
av_freep(&opts);
|
||||||
|
|
||||||
av_log(avctx, AV_LOG_VERBOSE, "Configured with size: %dx%d | pix_fmt: %s | sw_pix_fmt: %s\n",
|
av_log(avctx, AV_LOG_VERBOSE, "Configured with size: %dx%d | pix_fmt: %s | sw_pix_fmt: %s\n",
|
||||||
avctx->width, avctx->height,
|
avctx->width, avctx->height,
|
||||||
|
Reference in New Issue
Block a user