Unified · Split
| @@ -455,6 +455,8 @@ static av_cold int g726_decode_init(AVCodecContext *avctx) · 454 unmodified lines | ||
| 455 | 455 | g726_reset(c); |
| 456 | 456 | |
| 457 | 457 | avctx->sample_fmt = AV_SAMPLE_FMT_S16; |
| 458 | + if (!avctx->sample_rate) | |
| 459 | + avctx->sample_rate = 8000; | |
| 458 | 460 | |
| 459 | 461 | return 0; |
| 460 | 462 | } |