diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-05-11 15:23:43 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-05-14 17:36:11 +0800 |
commit | c663046b41057d0cec519e305e1cc4798ab3da50 (patch) | |
tree | 4eea477e40890f2491db3375407bb2930cd7dcdd | |
parent | 21832b93d53312fa43b40de73d44805bdacaab26 (diff) | |
download | ffmpeg-c663046b41057d0cec519e305e1cc4798ab3da50.tar.gz |
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: Steven Liu <lq@onvideo.cn>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r-- | libavformat/dashdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 6e3e7e4f1e..ce8bd4ad68 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -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++; |