[FFmpeg-devel] [PATCH]Warn if s16be is muxed into flv
Lou Logan
lou at lrcd.com
Thu Jan 16 00:27:40 CET 2014
On Wed, 15 Jan 2014 23:31:32 +0100, Carl Eugen Hoyos wrote:
> diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
> index fb36f66..172503d 100644
> --- a/libavformat/flvenc.c
> +++ b/libavformat/flvenc.c
> @@ -233,6 +233,9 @@ static int flv_write_header(AVFormatContext *s)
> audio_enc = enc;
> if (get_audio_flags(s, enc) < 0)
> return AVERROR_INVALIDDATA;
> + if (enc->codec_id == AV_CODEC_ID_PCM_S16BE)
> + av_log(s, AV_LOG_WARNING,
> + "16bit big-endian audio in flv is valid but most likely unplayable, use s16le\n");
Users may wonder why it is most likely unplayable. Maybe something like:
"16-bit big-endian audio in flv is valid but most likely unplayable
(hardware dependent); use s16le"
More information about the ffmpeg-devel
mailing list