summaryrefslogtreecommitdiff
path: root/libavcodec/libxavs.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-03-12 18:50:26 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-03-13 23:36:53 +0100
commit7f825d3335e7612c3ce47975ebfe59bd1c418ea4 (patch)
treebb4e6c8ddc3d1e0948ab54b7d084a2ea984a3895 /libavcodec/libxavs.c
parentfba9d9609fe00c8c4d04b76f9ecdd274aad318dd (diff)
avcodec/libxavs: Use frame_num instead of frame_number
Forgotten in 6b6f7db81932f94876ff4bcfd2da0582b8ab897e. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libxavs.c')
-rw-r--r--libavcodec/libxavs.c2
1 files changed, 1 insertions, 1 deletions
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,