[FFmpeg-cvslog] avformat/ffmdec: Silence "may be used uninitialized in this function" warnings
Michael Niedermayer
git at videolan.org
Sat Dec 3 20:47:44 EET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Dec 3 18:33:22 2016 +0100| [9859f54db3d24148826f2543367d06a3b77a9725] | committer: Michael Niedermayer
avformat/ffmdec: Silence "may be used uninitialized in this function" warnings
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9859f54db3d24148826f2543367d06a3b77a9725
---
libavformat/ffmdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 1bd380b..f863bf7 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -280,10 +280,10 @@ static int ffm_append_recommended_configuration(AVStream *st, char **conf)
static int ffm2_read_header(AVFormatContext *s)
{
FFMContext *ffm = s->priv_data;
- AVStream *st;
+ AVStream *st = NULL;
AVIOContext *pb = s->pb;
AVCodecContext *dummy_codec = NULL;
- AVCodecParameters *codecpar;
+ AVCodecParameters *codecpar = NULL;
const AVCodecDescriptor *codec_desc;
int ret;
int f_main = 0, f_cprv = -1, f_stvi = -1, f_stau = -1;
More information about the ffmpeg-cvslog
mailing list