[FFmpeg-cvslog] r24033 - trunk/ffmpeg.c
Baptiste Coudurier
baptiste.coudurier
Sun Jul 4 01:23:04 CEST 2010
On 7/3/10 4:22 PM, bcoudurier wrote:
> 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);
LOL, let me fix this.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-cvslog
mailing list