|
|
|
@ -2749,19 +2749,18 @@ static int read_thread(void *arg) |
|
|
|
|
AVDictionary **opts = setup_find_stream_info_opts(ic, codec_opts); |
|
|
|
|
int orig_nb_streams = ic->nb_streams; |
|
|
|
|
|
|
|
|
|
// TODO: reindent
|
|
|
|
|
err = avformat_find_stream_info(ic, opts); |
|
|
|
|
err = avformat_find_stream_info(ic, opts); |
|
|
|
|
|
|
|
|
|
for (i = 0; i < orig_nb_streams; i++) |
|
|
|
|
av_dict_free(&opts[i]); |
|
|
|
|
av_freep(&opts); |
|
|
|
|
for (i = 0; i < orig_nb_streams; i++) |
|
|
|
|
av_dict_free(&opts[i]); |
|
|
|
|
av_freep(&opts); |
|
|
|
|
|
|
|
|
|
if (err < 0) { |
|
|
|
|
av_log(NULL, AV_LOG_WARNING, |
|
|
|
|
"%s: could not find codec parameters\n", is->filename); |
|
|
|
|
ret = -1; |
|
|
|
|
goto fail; |
|
|
|
|
} |
|
|
|
|
if (err < 0) { |
|
|
|
|
av_log(NULL, AV_LOG_WARNING, |
|
|
|
|
"%s: could not find codec parameters\n", is->filename); |
|
|
|
|
ret = -1; |
|
|
|
|
goto fail; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (ic->pb) |
|
|
|
|