diff options
author | James Almer <jamrial@gmail.com> | 2021-07-03 16:24:59 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-07-04 11:18:43 -0300 |
commit | 041267b55871a5066e4acb5e29b545fede5998c9 (patch) | |
tree | 106296575a569c3a16d2f214d50c03ac98afdde4 /libavcodec/setts_bsf.c | |
parent | b0b3fce3c33352a87267b6ffa51da31d5162daff (diff) |
avcodec/setts_bsf: add a NOPTS constant
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/setts_bsf.c')
-rw-r--r-- | libavcodec/setts_bsf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c index 1e43036ee1..d7d13d2652 100644 --- a/libavcodec/setts_bsf.c +++ b/libavcodec/setts_bsf.c @@ -44,6 +44,7 @@ static const char *const var_names[] = { "STARTDTS", ///< DTS at start of movie "TB", ///< timebase of the stream "SR", ///< sample rate of the stream + "NOPTS", ///< The AV_NOPTS_VALUE constant NULL }; @@ -61,6 +62,7 @@ enum var_name { VAR_STARTDTS, VAR_TB, VAR_SR, + VAR_NOPTS, VAR_VARS_NB }; @@ -121,6 +123,7 @@ static int setts_init(AVBSFContext *ctx) s->prev_indts = AV_NOPTS_VALUE; s->prev_outpts = AV_NOPTS_VALUE; s->prev_outdts = AV_NOPTS_VALUE; + s->var_values[VAR_NOPTS] = AV_NOPTS_VALUE; return 0; } |