[vlc-commits] avformat: initialize empty options sets
Rafaël Carré
git at videolan.org
Wed Apr 25 16:52:10 CEST 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Apr 25 10:51:35 2012 -0400| [a685fdeb8df52ee79267f6231e487a1beaa1a6da] | committer: Rafaël Carré
avformat: initialize empty options sets
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a685fdeb8df52ee79267f6231e487a1beaa1a6da
---
modules/demux/avformat/demux.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 8142689..cce867e 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -253,10 +253,11 @@ int OpenDemux( vlc_object_t *p_this )
#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(26<<8)+0)
char *psz_opts = var_InheritString( p_demux, "avformat-options" );
AVDictionary *options[p_sys->ic->nb_streams];
+ for (unsigned i = 0; i < p_sys->ic->nb_streams; i++)
+ options[i] = NULL;
if (psz_opts && *psz_opts) {
options[0] = vlc_av_get_options(psz_opts);
for (unsigned i = 1; i < p_sys->ic->nb_streams; i++) {
- options[i] = NULL;
av_dict_copy(&options[i], options[0], 0);
}
}
More information about the vlc-commits
mailing list