mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/segafilmenc: Postpone check for existence of video stream
Up until now, the Sega FILM muxer complained if the first stream wasn't a video stream that there is no video stream at all which is of course nonsense. So postpone this check. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8ae026d74f
commit
30859c270f
1 changed files with 4 additions and 4 deletions
|
|
@ -183,11 +183,11 @@ static int film_init(AVFormatContext *format_context)
|
|||
}
|
||||
film->video_index = i;
|
||||
}
|
||||
}
|
||||
|
||||
if (film->video_index == -1) {
|
||||
av_log(format_context, AV_LOG_ERROR, "No video stream present.\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
if (film->video_index == -1) {
|
||||
av_log(format_context, AV_LOG_ERROR, "No video stream present.\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
if (audio != NULL && get_audio_codec_id(audio->codecpar->codec_id) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue