[FFmpeg-cvslog] avformat_open_input(): Add braces to shut up gcc warning.
Diego Biurrun
git at videolan.org
Fri Jul 15 17:58:57 CEST 2011
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jul 7 02:01:07 2011 +0200| [5a819c5e23b46bb03a9862790452ff829ea1e898] | committer: Diego Biurrun
avformat_open_input(): Add braces to shut up gcc warning.
libavformat/utils.c:599: warning: missing braces around initializer
libavformat/utils.c:599: warning: (near initialization for ‘ap.time_base’)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a819c5e23b46bb03a9862790452ff829ea1e898
---
libavformat/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cc0336a..4b675e6 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -597,7 +597,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma
{
AVFormatContext *s = *ps;
int ret = 0;
- AVFormatParameters ap = { 0 };
+ AVFormatParameters ap = { { 0 } };
AVDictionary *tmp = NULL;
if (!s && !(s = avformat_alloc_context()))
More information about the ffmpeg-cvslog
mailing list