diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-10-14 16:46:38 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-17 09:55:46 +0100 |
commit | cf83c0173917a44b89a25ea2b435429bbf9ee767 (patch) | |
tree | ae7e07d4f1851c7c71f17aeacb363efa04d647c8 /avplay.c | |
parent | f29c226af0ecc34c417b646580a9acd7d8bbaf48 (diff) | |
download | ffmpeg-cf83c0173917a44b89a25ea2b435429bbf9ee767.tar.gz |
avplay: Always free find_stream_info options
CC: libav-stable@libav.org
Bug-Id: CID 1238794
Diffstat (limited to 'avplay.c')
-rw-r--r-- | avplay.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2266,14 +2266,16 @@ static int decode_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) { fprintf(stderr, "%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, avplay maybe should not use url_feof() to test for the end |