[FFmpeg-cvslog] Warn if s16be is muxed into flv.
Carl Eugen Hoyos
git at videolan.org
Thu Jan 16 02:15:03 CET 2014
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jan 16 00:38:27 2014 +0100| [fe9f57592491096ac9c5a4b70430844108c2bde0] | committer: Carl Eugen Hoyos
Warn if s16be is muxed into flv.
Players that conform to the specification can only playback such
files correctly on big-endian hardware.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe9f57592491096ac9c5a4b70430844108c2bde0
---
libavformat/flvenc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index fb36f66..c16f8eb 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,
+ "16-bit big-endian audio in flv is valid but most likely unplayable (hardware dependent); use s16le\n");
break;
case AVMEDIA_TYPE_DATA:
if (enc->codec_id != AV_CODEC_ID_TEXT) {
More information about the ffmpeg-cvslog
mailing list