[FFmpeg-devel] [PATCH 1/3] avcodec/libxavs: Use frame_num instead of frame_number

Marton Balint cus at passwd.hu
Mon Mar 13 23:33:28 EET 2023



On Sun, 12 Mar 2023, Andreas Rheinhardt wrote:

> Forgotten in 6b6f7db81932f94876ff4bcfd2da0582b8ab897e.

This and the next similar patch in the series LGTM.

Thanks,
Marton

>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> 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,
> -- 
> 2.34.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list