Forgotten in 6b6f7db81932f94876ff4bcfd2da0582b8ab897e.
Unified · Split
| @@ -141,7 +141,7 @@ static int XAVS_frame(AVCodecContext *avctx, AVPacket *pkt, · 140 unmodified lines | ||
| 141 | 141 | |
| 142 | 142 | x4->pic.i_pts = frame->pts; |
| 143 | 143 | x4->pic.i_type = XAVS_TYPE_AUTO; |
| 144 | − x4->pts_buffer[avctx->frame_number % (avctx->max_b_frames+1)] = frame->pts; | |
| 144 | + x4->pts_buffer[avctx->frame_num % (avctx->max_b_frames+1)] = frame->pts; | |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | if (xavs_encoder_encode(x4->enc, &nal, &nnal, |