1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

check that stream is set, fixes CID13 RUN2

Originally committed as revision 13522 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-05-29 02:28:33 +00:00
parent 5735f6dca0
commit ce651af2b2

View File

@ -4233,7 +4233,7 @@ static int parse_ffconfig(const char *filename)
fprintf(stderr, "%s:%d: No corresponding <Stream> for </Stream>\n",
filename, line_num);
errors++;
}
} else {
if (stream->feed && stream->fmt && strcmp(stream->fmt->name, "ffm") != 0) {
if (audio_id != CODEC_ID_NONE) {
audio_enc.codec_type = CODEC_TYPE_AUDIO;
@ -4247,6 +4247,7 @@ static int parse_ffconfig(const char *filename)
}
}
stream = NULL;
}
} else if (!strcasecmp(cmd, "<Redirect")) {
/*********************************************/
char *q;