]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/nvenc: rename tc option to something more unique
authorTimo Rothenpieler <timo@rothenpieler.org>
Tue, 30 Jun 2020 17:03:56 +0000 (19:03 +0200)
committerTimo Rothenpieler <timo@rothenpieler.org>
Tue, 30 Jun 2020 17:03:56 +0000 (19:03 +0200)
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
libavcodec/nvenc.c
libavcodec/nvenc.h
libavcodec/nvenc_hevc.c
libavcodec/version.h

index b957b9cb7ca71ca70a15501c12b3927fcb30c7df..0981262491aca853556da87e506d24fe8453a6d1 100644 (file)
@@ -2154,7 +2154,7 @@ static int nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
             }
         }
 
-        if (ctx->tc && av_frame_get_side_data(frame, AV_FRAME_DATA_S12M_TIMECODE)) {
+        if (ctx->s12m_tc && av_frame_get_side_data(frame, AV_FRAME_DATA_S12M_TIMECODE)) {
             void *tc_data = NULL;
             size_t tc_size = 0;
 
index b67abcaf184176cd752c6b032145ea6f45f5110c..df0d9caf9cede95e835cdc1abc08c21febfaeaed 100644 (file)
@@ -196,7 +196,7 @@ typedef struct NvencContext
     int coder;
     int b_ref_mode;
     int a53_cc;
-    int tc;
+    int s12m_tc;
     int dpb_size;
 } NvencContext;
 
index 1924e4b148b3811d2880c5668caeb26f80e9c6fb..a90dd51f5f5da865d496742b834320be7bc09dd8 100644 (file)
@@ -130,7 +130,7 @@ static const AVOption options[] = {
     { "middle",       "",                                   0,                    AV_OPT_TYPE_CONST, { .i64 = 2 }, 0, 0,       VE, "b_ref_mode" },
 #endif
     { "a53cc",        "Use A53 Closed Captions (if available)", OFFSET(a53_cc),   AV_OPT_TYPE_BOOL,  { .i64 = 1 }, 0, 1,       VE },
-    { "tc",           "Use timecode (if available)",        OFFSET(tc),           AV_OPT_TYPE_BOOL,  { .i64 = 1 }, 0, 1,       VE },
+    { "s12m_tc",      "Use timecode (if available)",        OFFSET(s12m_tc),      AV_OPT_TYPE_BOOL,  { .i64 = 1 }, 0, 1,       VE },
     { "dpb_size",     "Specifies the DPB size used for encoding (0 means automatic)",
                                                             OFFSET(dpb_size),     AV_OPT_TYPE_INT,   { .i64 = 0 }, 0, INT_MAX, VE },
     { NULL }
index 03593026b364938d91ded3d7f8fe469d4697657b..05f59901ff66a4103eb19ca129090073417da07e 100644 (file)
@@ -29,7 +29,7 @@
 
 #define LIBAVCODEC_VERSION_MAJOR  58
 #define LIBAVCODEC_VERSION_MINOR  93
-#define LIBAVCODEC_VERSION_MICRO 100
+#define LIBAVCODEC_VERSION_MICRO 101
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \