1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

This commit is contained in:
Colin NG 2018-08-29 16:28:03 +08:00 committed by Steven Liu
parent 3cff2311ab
commit b205635fbc

View File

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