mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Warn if s16be is muxed into flv.
Players that conform to the specification can only playback such files correctly on big-endian hardware.
This commit is contained in:
parent
cb36e441de
commit
fe9f575924
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user