summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-07-03 23:22:25 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-07-03 23:22:25 +0000
commit947cbeca16c7a30322e02feea440e1e67801ab9a (patch)
tree02c027ea579d1d1c5b33b9283f33dac18fbaef52 /ffmpeg.c
parentcfb7e6e6d5d2ba2c7b4664e77c47fb866b08fa1b (diff)
downloadffmpeg-947cbeca16c7a30322e02feea440e1e67801ab9a.tar.gz
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 Originally committed as revision 24033 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 908c384d8c..a77093bd98 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -662,7 +662,7 @@ static void choose_sample_rate(AVStream *st, AVCodec *codec)
{
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);