diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-01-16 00:38:27 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-01-16 00:38:27 +0100 |
commit | fe9f57592491096ac9c5a4b70430844108c2bde0 (patch) | |
tree | 449debf9b1f7badc8ec8ae98390df2af93277f9b /libavformat/flvenc.c | |
parent | cb36e441de47a710b3868f5072065d31eea2fe68 (diff) | |
download | ffmpeg-fe9f57592491096ac9c5a4b70430844108c2bde0.tar.gz |
Warn if s16be is muxed into flv.
Players that conform to the specification can only playback such
files correctly on big-endian hardware.
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index fb36f662b7..c16f8ebb4a 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) { |