[MPlayer-dev-eng] [RFC][PATCH 3/8] vd_ffmpeg/ve_lavc: Use frame_num instead of frame_number
Alexander Strasser
eclipse7 at gmx.net
Thu Apr 4 01:39:37 EEST 2024
Removed from lavc on major bump to 61
---
libmpcodecs/vd_ffmpeg.c | 4 ++--
libmpcodecs/ve_lavc.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index c00c978ab..1588f8817 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -515,8 +515,8 @@ static void uninit(sh_video_t *sh){
mp_msg(MSGT_DECVIDEO, MSGL_INFO, "QP: %d, count: %d\n", i, ctx->qp_stat[i]);
}
mp_msg(MSGT_DECVIDEO, MSGL_INFO, MSGTR_MPCODECS_ArithmeticMeanOfQP,
- ctx->qp_sum / avctx->frame_number,
- 1.0/(ctx->inv_qp_sum / avctx->frame_number)
+ ctx->qp_sum / avctx->frame_num,
+ 1.0/(ctx->inv_qp_sum / avctx->frame_num)
);
}
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 2e9ca4eeb..5c368d8b7 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -740,7 +740,7 @@ static int encode_frame(struct vf_instance *vf, AVFrame *pic, double pts){
int res;
if(pts == MP_NOPTS_VALUE)
- pts= lavc_venc_context->frame_number * av_q2d(lavc_venc_context->time_base);
+ pts= lavc_venc_context->frame_num * av_q2d(lavc_venc_context->time_base);
if(pic){
#if 0
--
More information about the MPlayer-dev-eng
mailing list