summaryrefslogtreecommitdiff
path: root/libavformat/ffmdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-03 18:33:22 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-12-03 19:45:31 +0100
commit9859f54db3d24148826f2543367d06a3b77a9725 (patch)
tree6d6fe5a583198e8a73f99ee7b1912c951f56d2a6 /libavformat/ffmdec.c
parentb98510de5c2a04b45ae7471a666c36e124df4d36 (diff)
avformat/ffmdec: Silence "may be used uninitialized in this function" warnings
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 1bd380b6a8..f863bf7818 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;