Commit da8eb70d authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/aiffenc: Clarify an error message.

Only one audio stream is allowed in aiff.
parent 5ab3b6a8
......@@ -112,7 +112,7 @@ static int aiff_write_header(AVFormatContext *s)
if (aiff->audio_stream_idx < 0 && st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
aiff->audio_stream_idx = i;
} else if (st->codec->codec_type != AVMEDIA_TYPE_VIDEO) {
av_log(s, AV_LOG_ERROR, "Only audio streams and pictures are allowed in AIFF.\n");
av_log(s, AV_LOG_ERROR, "AIFF allows only one audio stream and a picture.\n");
return AVERROR(EINVAL);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment