[FFmpeg-cvslog] r24033 - trunk/ffmpeg.c

bcoudurier subversion
Sun Jul 4 01:22:26 CEST 2010


Author: bcoudurier
Date: Sun Jul  4 01:22:25 2010
New Revision: 24033

Log:
Fix warning:
ffmpeg.c: In function 'new_audio_stream':
ffmpeg.c:665: warning: 'best' may be used uninitialized in this function
ffmpeg.c:665: note: 'best' was declared here

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sat Jul  3 23:20:32 2010	(r24032)
+++ trunk/ffmpeg.c	Sun Jul  4 01:22:25 2010	(r24033)
@@ -662,7 +662,7 @@ static void choose_sample_rate(AVStream 
 {
     if(codec && codec->supported_samplerates){
         const int *p= codec->supported_samplerates;
-        int best;
+        int best;//=0;
         int best_dist=INT_MAX;
         for(; *p; p++){
             int dist= abs(st->codec->sample_rate - *p);



More information about the ffmpeg-cvslog mailing list