[SCM] libav/experimental: 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
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:10:18 UTC 2013
The following commit has been merged in the experimental branch:
commit 3c5e1b36d5ce0d75e1b63fafab93e8efeb6a6fcd
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Sat Jul 3 23:24:37 2010 +0000
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
diff --git a/ffmpeg.c b/ffmpeg.c
index a77093b..30a319c 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;//=0;
+ int best=0;
int best_dist=INT_MAX;
for(; *p; p++){
int dist= abs(st->codec->sample_rate - *p);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list