summaryrefslogtreecommitdiffstats
path: root/libavformat/dashdec.c
diff options
context:
space:
mode:
authorColin NG <colin_ng@hotmail.com>2018-08-29 16:28:03 +0800
committerSteven Liu <lq@chinaffmpeg.org>2018-08-29 16:28:03 +0800
commitb205635fbc0893b092caabd9edc047d16e44da7e (patch)
treec8ae4cd32963dfe748fb9d1d63dec0a4d4166652 /libavformat/dashdec.c
parent3cff2311ab9d6a0000120ef61f811aa139c038a8 (diff)
downloadffmpeg-streaming-b205635fbc0893b092caabd9edc047d16e44da7e.zip
ffmpeg-streaming-b205635fbc0893b092caabd9edc047d16e44da7e.tar.gz
avformat/dashdec: Add a re-entrance check point after an interrupt operation
Diffstat (limited to 'libavformat/dashdec.c')
-rw-r--r--libavformat/dashdec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 85fbe6a..0435f25 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -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;
OpenPOWER on IntegriCloud