[FFmpeg-cvslog] avcodec/libxavs: Use frame_num instead of frame_number

Andreas Rheinhardt git at videolan.org
Tue Mar 14 00:45:10 EET 2023


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Mar 12 18:50:26 2023 +0100| [7f825d3335e7612c3ce47975ebfe59bd1c418ea4] | committer: Andreas Rheinhardt

avcodec/libxavs: Use frame_num instead of frame_number

Forgotten in 6b6f7db81932f94876ff4bcfd2da0582b8ab897e.

Reviewed-by: Marton Balint <cus at passwd.hu>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f825d3335e7612c3ce47975ebfe59bd1c418ea4
---

 libavcodec/libxavs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c
index 9ed73d1042..6c29539f24 100644
--- a/libavcodec/libxavs.c
+++ b/libavcodec/libxavs.c
@@ -141,7 +141,7 @@ static int XAVS_frame(AVCodecContext *avctx, AVPacket *pkt,
 
         x4->pic.i_pts  = frame->pts;
         x4->pic.i_type = XAVS_TYPE_AUTO;
-        x4->pts_buffer[avctx->frame_number % (avctx->max_b_frames+1)] = frame->pts;
+        x4->pts_buffer[avctx->frame_num % (avctx->max_b_frames+1)] = frame->pts;
     }
 
     if (xavs_encoder_encode(x4->enc, &nal, &nnal,



More information about the ffmpeg-cvslog mailing list