aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g726.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-22 13:26:46 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:16 -0400
commita346aaf148dc2ce53da30e2f67223834495c0fd6 (patch)
tree25c05e346d04be6f7113d76930c3bf816faf7250 /libavcodec/g726.c
parente00eb03cd8bfb6993d33c30ccd560947b5f6bad5 (diff)
downloadffmpeg-a346aaf148dc2ce53da30e2f67223834495c0fd6.tar.gz
g726dec: do not validate sample rate
For decoding it does not really matter what the sample rate is.
Diffstat (limited to 'libavcodec/g726.c')
-rw-r--r--libavcodec/g726.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index ed4bd26c70..91b5e54cef 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -422,14 +422,6 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
{
G726Context* c = avctx->priv_data;
- if (avctx->strict_std_compliance >= FF_COMPLIANCE_STRICT &&
- avctx->sample_rate != 8000) {
- av_log(avctx, AV_LOG_ERROR, "Only 8kHz sample rate is allowed when "
- "the compliance level is strict. Reduce the compliance level "
- "if you wish to decode the stream anyway.\n");
- return AVERROR(EINVAL);
- }
-
avctx->channels = 1;
avctx->channel_layout = AV_CH_LAYOUT_MONO;