Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-14 06:13:31 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-15 01:00:35 +0300
commit30859c270fa5f14d9bb13382f86f90affc3a4c3e (patch)
treecad9c40f4d31e68ecd50c620571bbbeafc202c96 /libavformat/segafilmenc.c
parent8ae026d74f599b2d00b91798af1c1067a879007c (diff)
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>
Diffstat (limited to 'libavformat/segafilmenc.c')
-rw-r--r--libavformat/segafilmenc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c
index d721ec38fa..56fc59a811 100644
--- a/libavformat/segafilmenc.c
+++ b/libavformat/segafilmenc.c
@@ -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) {