aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-04-30 00:06:36 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-04-30 00:06:36 +0000
commitff866063e981ea6a51036c2ffd9bb152b8219437 (patch)
tree370465664a30003f1011f8cb3354a952a4b720f1
parent547b7bcbb77d7f5b2cbcbce8d734ea43617194ab (diff)
downloadffmpeg-ff866063e981ea6a51036c2ffd9bb152b8219437.tar.gz
Print warnig if requested samplingrate is unsupported.
Originally committed as revision 22991 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index be18065413..66c80396ce 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -498,6 +498,9 @@ static void choose_sample_rate(AVStream *st, AVCodec *codec)
best= *p;
}
}
+ if(best_dist){
+ av_log(st->codec, AV_LOG_WARNING, "Requested sampling rate unsupported using closest supported (%d)\n", best);
+ }
st->codec->sample_rate= best;
}
}