Commit a4456e9f authored by bcoudurier's avatar bcoudurier

check if stream has been set, fixes CID15 RUN2

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13521 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fb424497
...@@ -3910,6 +3910,7 @@ static int parse_ffconfig(const char *filename) ...@@ -3910,6 +3910,7 @@ static int parse_ffconfig(const char *filename)
} }
} else if (!strcasecmp(cmd, "Format")) { } else if (!strcasecmp(cmd, "Format")) {
get_arg(arg, sizeof(arg), &p); get_arg(arg, sizeof(arg), &p);
if (stream) {
if (!strcmp(arg, "status")) { if (!strcmp(arg, "status")) {
stream->stream_type = STREAM_TYPE_STATUS; stream->stream_type = STREAM_TYPE_STATUS;
stream->fmt = NULL; stream->fmt = NULL;
...@@ -3929,6 +3930,7 @@ static int parse_ffconfig(const char *filename) ...@@ -3929,6 +3930,7 @@ static int parse_ffconfig(const char *filename)
audio_id = stream->fmt->audio_codec; audio_id = stream->fmt->audio_codec;
video_id = stream->fmt->video_codec; video_id = stream->fmt->video_codec;
} }
}
} else if (!strcasecmp(cmd, "InputFormat")) { } else if (!strcasecmp(cmd, "InputFormat")) {
get_arg(arg, sizeof(arg), &p); get_arg(arg, sizeof(arg), &p);
stream->ifmt = av_find_input_format(arg); stream->ifmt = av_find_input_format(arg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment