mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
ffmpeg: fix compiler warning for uninitialized variables
Signed-off-by: Jean First <jeanfirst@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f2eb2e5c4f
commit
12bdc7b15e
6
ffmpeg.c
6
ffmpeg.c
@ -3159,7 +3159,7 @@ static int opt_map(OptionsContext *o, const char *opt, const char *arg)
|
|||||||
{
|
{
|
||||||
StreamMap *m = NULL;
|
StreamMap *m = NULL;
|
||||||
int i, negative = 0, file_idx;
|
int i, negative = 0, file_idx;
|
||||||
int sync_file_idx = -1, sync_stream_idx;
|
int sync_file_idx = -1, sync_stream_idx = 0;
|
||||||
char *p, *sync;
|
char *p, *sync;
|
||||||
char *map;
|
char *map;
|
||||||
|
|
||||||
@ -3342,7 +3342,7 @@ static void parse_meta_type(char *arg, char *type, int *index, const char **stre
|
|||||||
static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o)
|
static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o)
|
||||||
{
|
{
|
||||||
AVDictionary **meta_in = NULL;
|
AVDictionary **meta_in = NULL;
|
||||||
AVDictionary **meta_out;
|
AVDictionary **meta_out = NULL;
|
||||||
int i, ret = 0;
|
int i, ret = 0;
|
||||||
char type_in, type_out;
|
char type_in, type_out;
|
||||||
const char *istream_spec = NULL, *ostream_spec = NULL;
|
const char *istream_spec = NULL, *ostream_spec = NULL;
|
||||||
@ -4489,7 +4489,7 @@ static void opt_output_file(void *optctx, const char *filename)
|
|||||||
AVDictionary **m;
|
AVDictionary **m;
|
||||||
char type, *val;
|
char type, *val;
|
||||||
const char *stream_spec;
|
const char *stream_spec;
|
||||||
int index = 0, j, ret;
|
int index = 0, j, ret = 0;
|
||||||
|
|
||||||
val = strchr(o->metadata[i].u.str, '=');
|
val = strchr(o->metadata[i].u.str, '=');
|
||||||
if (!val) {
|
if (!val) {
|
||||||
|
Loading…
Reference in New Issue
Block a user