Commit c663046b authored by Jun Zhao's avatar Jun Zhao Committed by Steven Liu

lavf/dashdec: fix the coding logic after open_input fail

setting return status following goto will never be executed, so
adjust the location in the code.
Reviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
Signed-off-by: 's avatarJun Zhao <barryjzhao@tencent.com>
parent 21832b93
...@@ -1793,8 +1793,8 @@ restart: ...@@ -1793,8 +1793,8 @@ restart:
ret = open_input(c, v, v->cur_seg); ret = open_input(c, v, v->cur_seg);
if (ret < 0) { if (ret < 0) {
if (ff_check_interrupt(c->interrupt_callback)) { if (ff_check_interrupt(c->interrupt_callback)) {
goto end;
ret = AVERROR_EXIT; ret = AVERROR_EXIT;
goto end;
} }
av_log(v->parent, AV_LOG_WARNING, "Failed to open fragment of playlist %d\n", v->rep_idx); av_log(v->parent, AV_LOG_WARNING, "Failed to open fragment of playlist %d\n", v->rep_idx);
v->cur_seq_no++; v->cur_seq_no++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment