summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-07 23:32:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-07 23:35:05 +0200
commit364c71c80e9124a2624e3bfeb8e84c5cddeda222 (patch)
tree68d7fb0716fe95227f105e46847846065c9d792f /libavformat/movenc.c
parent653d117c29123d353ce3bdd7de71e830a26733c1 (diff)
movenc: store codecs that dont provide a frame_size as audio_vbr=1
Fixes Ticket1240 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 8dc6ada831..55027374fd 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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) {