diff --git a/libavcodec/g726.c b/libavcodec/g726.c index e048cd973e..b1be487f77 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -457,6 +457,8 @@ static av_cold int g726_decode_init(AVCodecContext *avctx) g726_reset(c); avctx->sample_fmt = AV_SAMPLE_FMT_S16; + if (!avctx->sample_rate) + avctx->sample_rate = 8000; return 0; }