lavf/dashdec: fix the coding logic after open_input fail
authorJun Zhao <barryjzhao@tencent.com>
Sat, 11 May 2019 07:23:43 +0000 (15:23 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 14 May 2019 09:36:11 +0000 (17:36 +0800)
setting return status following goto will never be executed, so
adjust the location in the code.

Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavformat/dashdec.c

index 6e3e7e4..ce8bd4a 100644 (file)
@@ -1793,8 +1793,8 @@ restart:
         ret = open_input(c, v, v->cur_seg);
         if (ret < 0) {
             if (ff_check_interrupt(c->interrupt_callback)) {
-                goto end;
                 ret = AVERROR_EXIT;
+                goto end;
             }
             av_log(v->parent, AV_LOG_WARNING, "Failed to open fragment of playlist %d\n", v->rep_idx);
             v->cur_seq_no++;