mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
lavf/dashdec: refactoring error handle logic for open_input
refactoring error handle logic for open_input. Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
c663046b41
commit
bf6e0f709b
@ -1687,6 +1687,7 @@ static int open_input(DASHContext *c, struct representation *pls, struct fragmen
|
||||
|
||||
url = av_mallocz(c->max_url_size);
|
||||
if (!url) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@ -1701,9 +1702,6 @@ static int open_input(DASHContext *c, struct representation *pls, struct fragmen
|
||||
av_log(pls->parent, AV_LOG_VERBOSE, "DASH request for url '%s', offset %"PRId64", playlist %d\n",
|
||||
url, seg->url_offset, pls->rep_idx);
|
||||
ret = open_url(pls->parent, &pls->input, url, c->avio_opts, opts, NULL);
|
||||
if (ret < 0) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
av_free(url);
|
||||
|
Loading…
Reference in New Issue
Block a user