mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
movenc: store codecs that dont provide a frame_size as audio_vbr=1
Fixes Ticket1240 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
653d117c29
commit
364c71c80e
@ -3186,8 +3186,8 @@ static int mov_write_header(AVFormatContext *s)
|
||||
}else if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO){
|
||||
track->timescale = st->codec->sample_rate;
|
||||
if(!st->codec->frame_size && !av_get_bits_per_sample(st->codec->codec_id)) {
|
||||
av_log(s, AV_LOG_ERROR, "track %d: codec frame size is not set\n", i);
|
||||
goto error;
|
||||
av_log(s, AV_LOG_WARNING, "track %d: codec frame size is not set\n", i);
|
||||
track->audio_vbr = 1;
|
||||
}else if(st->codec->codec_id == CODEC_ID_ADPCM_MS ||
|
||||
st->codec->codec_id == CODEC_ID_ADPCM_IMA_WAV){
|
||||
if (!st->codec->block_align) {
|
||||
|
Loading…
Reference in New Issue
Block a user