[FFmpeg-cvslog] r15189 - trunk/libavformat/movenc.c

bcoudurier subversion
Wed Sep 3 21:31:03 CEST 2008


Author: bcoudurier
Date: Wed Sep  3 21:31:03 2008
New Revision: 15189

Log:
forbid mp3 < 16000hz in anything except mov

Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Wed Sep  3 21:31:03 2008
@@ -1610,6 +1610,12 @@ static int mov_write_header(AVFormatCont
             }else{
                 track->sampleSize = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels;
             }
+            if(track->mode != MODE_MOV &&
+               track->enc->codec_id == CODEC_ID_MP3 && track->enc->sample_rate < 16000){
+                av_log(s, AV_LOG_ERROR, "track %d: muxing mp3 at %dhz is not supported\n",
+                       i, track->enc->sample_rate);
+                return -1;
+            }
         }
     }
 




More information about the ffmpeg-cvslog mailing list