[MPlayer-cvslog] r38452 - in trunk/libmpcodecs: vd_ffmpeg.c ve_lavc.c

al subversion at mplayerhq.hu
Tue Apr 9 00:32:39 EEST 2024


Author: al
Date: Tue Apr  9 00:32:39 2024
New Revision: 38452

Log:
vd_ffmpeg/ve_lavc: Use frame_num instead of frame_number

Removed from lavc on major bump to 61

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c
   trunk/libmpcodecs/ve_lavc.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Tue Apr  9 00:29:41 2024	(r38451)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Tue Apr  9 00:32:39 2024	(r38452)
@@ -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)
             );
     }
 

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Tue Apr  9 00:29:41 2024	(r38451)
+++ trunk/libmpcodecs/ve_lavc.c	Tue Apr  9 00:32:39 2024	(r38452)
@@ -740,7 +740,7 @@ static int encode_frame(struct vf_instan
     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-cvslog mailing list