From: hwrenx <[email protected]> Remove deprecated paramete FrameRate (frame rate code) and use fps (frame rate). Avoid encoder warning.
Signed-off-by: hwrenx <[email protected]> --- libavcodec/libxavs2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 47ba74d..04f4ecb 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -113,8 +113,7 @@ static av_cold int xavs2_init(AVCodecContext *avctx) xavs2_opt_set2("InitialQP", "%d", cae->qp); } - ff_mpeg12_find_best_frame_rate(avctx->framerate, &code, NULL, NULL, 0); - xavs2_opt_set2("FrameRate", "%d", code); + xavs2_opt_set2("fps", "%d", avctx->framerate); cae->encoder = cae->api->encoder_create(cae->param); if (!cae->encoder) { -- 2.7.4 _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
