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:
nyanmisaka
2025-06-30 17:15:47 +08:00
parent f37c17d024
commit 374848d45c

View File

@@ -857,6 +857,8 @@ static int rkmpp_get_frame(AVCodecContext *avctx, AVFrame *frame, int timeout)
if (av_opt_serialize(r, 0, 0, &opts, '=', ' ') >= 0)
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",
avctx->width, avctx->height,