[FFmpeg-cvslog] lavf/dashdec: fix the coding logic after open_input fail

Jun Zhao git at videolan.org
Tue May 14 12:36:28 EEST 2019


ffmpeg | branch: master | Jun Zhao <barryjzhao at tencent.com> | Sat May 11 15:23:43 2019 +0800| [c663046b41057d0cec519e305e1cc4798ab3da50] | committer: 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: Steven Liu <lq at onvideo.cn>
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c663046b41057d0cec519e305e1cc4798ab3da50
---

 libavformat/dashdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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++;



More information about the ffmpeg-cvslog mailing list