Commit 99d86863 authored by Justin Ruggles's avatar Justin Ruggles

flacdec: do not warn on sample rate change

parent 90fcac0e
......@@ -460,12 +460,8 @@ static int decode_frame(FLACContext *s)
" or frame header\n");
return -1;
}
if (fi.samplerate == 0) {
if (fi.samplerate == 0)
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;
if (!s->got_streaminfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment