diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-07-12 22:19:31 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-08-16 22:51:11 +0800 |
commit | d7af6d146983f8a63304fffb8535787f9e7bdee9 (patch) | |
tree | 6bc41eac70cf151ed1975fafd02f9a332bd77161 /libavcodec/nvenc.c | |
parent | 6328a5706832eac5568fb6d20fe2095790349598 (diff) | |
download | ffmpeg-d7af6d146983f8a63304fffb8535787f9e7bdee9.tar.gz |
avcodec/utils: calculate frame number of HEVC if the framerate > 30FPS
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index ee8ba3cb39..887e11b1e2 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -2219,7 +2219,7 @@ static int nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame) void *tc_data = NULL; size_t tc_size = 0; - if (ff_alloc_timecode_sei(frame, 0, (void**)&tc_data, &tc_size) < 0) { + if (ff_alloc_timecode_sei(frame, avctx->framerate, 0, (void**)&tc_data, &tc_size) < 0) { av_log(ctx, AV_LOG_ERROR, "Not enough memory for timecode sei, skipping\n"); } |