1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

flacdec: do not warn on sample rate change

This commit is contained in:
Justin Ruggles 2012-10-21 17:04:58 -04:00
parent 90fcac0e95
commit 99d8686357

View File

@ -460,12 +460,8 @@ static int decode_frame(FLACContext *s)
" or frame header\n"); " or frame header\n");
return -1; return -1;
} }
if (fi.samplerate == 0) { if (fi.samplerate == 0)
fi.samplerate = s->samplerate; fi.samplerate = s->samplerate;
} else if (s->samplerate && fi.samplerate != s->samplerate) {
av_log(s->avctx, AV_LOG_WARNING, "sample rate changed from %d to %d\n",
s->samplerate, fi.samplerate);
}
s->samplerate = s->avctx->sample_rate = fi.samplerate; s->samplerate = s->avctx->sample_rate = fi.samplerate;
if (!s->got_streaminfo) { if (!s->got_streaminfo) {