Browse Source

avformat/dashdec: Add a re-entrance check point after an interrupt operation

tags/n4.1
Colin NG Steven Liu 7 years ago
parent
commit
b205635fbc
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavformat/dashdec.c

+ 6
- 0
libavformat/dashdec.c View 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;


Loading…
Cancel
Save