diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/segafilmenc.c | 8 |
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) { |