diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-17 13:17:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-17 13:17:05 +0200 |
commit | 019ff7a0c37a25068c99b7b72cc9650a2a47863e (patch) | |
tree | 6af3c8f8c77fec2140bbf01e5f19a59a6ceb9646 /ffplay.c | |
parent | c40a1bd253f673d821a5df2a7a863a1837446123 (diff) | |
parent | cf83c0173917a44b89a25ea2b435429bbf9ee767 (diff) | |
download | ffmpeg-019ff7a0c37a25068c99b7b72cc9650a2a47863e.tar.gz |
Merge commit 'cf83c0173917a44b89a25ea2b435429bbf9ee767'
* commit 'cf83c0173917a44b89a25ea2b435429bbf9ee767':
avplay: Always free find_stream_info options
Conflicts:
ffplay.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2888,15 +2888,17 @@ static int read_thread(void *arg) orig_nb_streams = ic->nb_streams; err = avformat_find_stream_info(ic, 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; } - for (i = 0; i < orig_nb_streams; i++) - av_dict_free(&opts[i]); - av_freep(&opts); if (ic->pb) ic->pb->eof_reached = 0; // FIXME hack, ffplay maybe should not use avio_feof() to test for the end |