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

bcoudurier subversion
Sun Jul 4 01:24:38 CEST 2010


Author: bcoudurier
Date: Sun Jul  4 01:24:37 2010
New Revision: 24034

Log:
LOL, 100l, really 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	Sun Jul  4 01:22:25 2010	(r24033)
+++ trunk/ffmpeg.c	Sun Jul  4 01:24:37 2010	(r24034)
@@ -662,7 +662,7 @@ static void choose_sample_rate(AVStream 
 {
     if(codec && codec->supported_samplerates){
         const int *p= codec->supported_samplerates;
-        int best;//=0;
+        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