Commit ce651af2 authored by Baptiste Coudurier's avatar Baptiste Coudurier

check that stream is set, fixes CID13 RUN2

Originally committed as revision 13522 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5735f6dc
...@@ -4233,7 +4233,7 @@ static int parse_ffconfig(const char *filename) ...@@ -4233,7 +4233,7 @@ static int parse_ffconfig(const char *filename)
fprintf(stderr, "%s:%d: No corresponding <Stream> for </Stream>\n", fprintf(stderr, "%s:%d: No corresponding <Stream> for </Stream>\n",
filename, line_num); filename, line_num);
errors++; errors++;
} } else {
if (stream->feed && stream->fmt && strcmp(stream->fmt->name, "ffm") != 0) { if (stream->feed && stream->fmt && strcmp(stream->fmt->name, "ffm") != 0) {
if (audio_id != CODEC_ID_NONE) { if (audio_id != CODEC_ID_NONE) {
audio_enc.codec_type = CODEC_TYPE_AUDIO; audio_enc.codec_type = CODEC_TYPE_AUDIO;
...@@ -4247,6 +4247,7 @@ static int parse_ffconfig(const char *filename) ...@@ -4247,6 +4247,7 @@ static int parse_ffconfig(const char *filename)
} }
} }
stream = NULL; stream = NULL;
}
} else if (!strcasecmp(cmd, "<Redirect")) { } else if (!strcasecmp(cmd, "<Redirect")) {
/*********************************************/ /*********************************************/
char *q; char *q;
......
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