[FFmpeg-cvslog] r10692 - trunk/libavformat/flvenc.c
michael
subversion
Tue Oct 9 03:01:07 CEST 2007
Author: michael
Date: Tue Oct 9 03:01:07 2007
New Revision: 10692
Log:
avoid generating invalid files
fixes issue213
Modified:
trunk/libavformat/flvenc.c
Modified: trunk/libavformat/flvenc.c
==============================================================================
--- trunk/libavformat/flvenc.c (original)
+++ trunk/libavformat/flvenc.c Tue Oct 9 03:01:07 2007
@@ -66,8 +66,10 @@ static int get_audio_flags(AVCodecContex
break;
case 8000: //nellymoser only
case 5512: //not mp3
+ if(enc->codec_id != CODEC_ID_MP3){
flags |= FLV_SAMPLERATE_SPECIAL;
break;
+ }
default:
av_log(enc, AV_LOG_ERROR, "flv does not support that sample rate, choose from (44100, 22050, 11025).\n");
return -1;
More information about the ffmpeg-cvslog
mailing list