Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/dts2pts_bsf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dts2pts_bsf.c b/libavcodec/dts2pts_bsf.c
index bf20b1ec8a..8142562d2c 100644
--- a/libavcodec/dts2pts_bsf.c
+++ b/libavcodec/dts2pts_bsf.c
@@ -505,7 +505,8 @@ static void dts2pts_flush(AVBSFContext *ctx)
s->root = NULL;
ff_cbs_fragment_reset(&s->au);
- ff_cbs_flush(s->cbc);
+ if (s->cbc)
+ ff_cbs_flush(s->cbc);
}
static void dts2pts_close(AVBSFContext *ctx)