You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf/aiffenc: Clarify an error message.
Only one audio stream is allowed in aiff.
This commit is contained in:
@@ -112,7 +112,7 @@ static int aiff_write_header(AVFormatContext *s)
|
|||||||
if (aiff->audio_stream_idx < 0 && st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
if (aiff->audio_stream_idx < 0 && st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
||||||
aiff->audio_stream_idx = i;
|
aiff->audio_stream_idx = i;
|
||||||
} else if (st->codec->codec_type != AVMEDIA_TYPE_VIDEO) {
|
} 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);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user