fix(encoder): timestamp errors processing frames with PTS equal to 0

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2024-11-10 00:00:00 +00:00
parent c8f2acdea6
commit e477123e88
4 changed files with 26 additions and 4 deletions

View File

@@ -28,7 +28,8 @@ int write_frame(
AVFrame *frame,
AVCodecContext *enc_ctx,
AVFormatContext *ofmt_ctx,
int out_vstream_idx
int out_vstream_idx,
int64_t frame_idx
);
int flush_encoder(AVCodecContext *enc_ctx, AVFormatContext *ofmt_ctx, int out_vstream_idx);