diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-07-03 23:24:37 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-07-03 23:24:37 +0000 |
commit | 3c5e1b36d5ce0d75e1b63fafab93e8efeb6a6fcd (patch) | |
tree | c0ef8718ab1b5d87ee10ef83b27e0a104261a511 /ffmpeg.c | |
parent | 947cbeca16c7a30322e02feea440e1e67801ab9a (diff) | |
download | ffmpeg-3c5e1b36d5ce0d75e1b63fafab93e8efeb6a6fcd.tar.gz |
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
Originally committed as revision 24034 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;//=0; + int best=0; int best_dist=INT_MAX; for(; *p; p++){ int dist= abs(st->codec->sample_rate - *p); |