mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-29 07:59:16 +00:00
check if stream has been set, fixes CID15 RUN2
Originally committed as revision 13521 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
75480e86ba
commit
5735f6dca0
1 changed files with 2 additions and 0 deletions
|
@ -3910,6 +3910,7 @@ static int parse_ffconfig(const char *filename)
|
|||
}
|
||||
} else if (!strcasecmp(cmd, "Format")) {
|
||||
get_arg(arg, sizeof(arg), &p);
|
||||
if (stream) {
|
||||
if (!strcmp(arg, "status")) {
|
||||
stream->stream_type = STREAM_TYPE_STATUS;
|
||||
stream->fmt = NULL;
|
||||
|
@ -3929,6 +3930,7 @@ static int parse_ffconfig(const char *filename)
|
|||
audio_id = stream->fmt->audio_codec;
|
||||
video_id = stream->fmt->video_codec;
|
||||
}
|
||||
}
|
||||
} else if (!strcasecmp(cmd, "InputFormat")) {
|
||||
get_arg(arg, sizeof(arg), &p);
|
||||
stream->ifmt = av_find_input_format(arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue