]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dashdec: Add a re-entrance check point after an interrupt operation
authorColin NG <colin_ng@hotmail.com>
Wed, 29 Aug 2018 08:28:03 +0000 (16:28 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 29 Aug 2018 08:28:03 +0000 (16:28 +0800)
libavformat/dashdec.c

index 85fbe6aaccd3bc156d9d55fcb351df5362957928..0435f254122fadaaabdc686c09c5573be841dfd6 100644 (file)
@@ -1777,6 +1777,12 @@ static int reopen_demux_for_component(AVFormatContext *s, struct representation
     if (pls->ctx) {
         close_demux_for_component(pls);
     }
+
+    if (ff_check_interrupt(&s->interrupt_callback)) {
+        ret = AVERROR_EXIT;
+        goto fail;
+    }
+
     if (!(pls->ctx = avformat_alloc_context())) {
         ret = AVERROR(ENOMEM);
         goto fail;