History

avcodec/g726: init missing sample rate

Kacper Michajłow committed 1 year ago

Commit bde02331 parent 6b1f9941 file · +2 −0Browse files

Unified · Split

libavcodec/g726.c+2−0
@@ -455,6 +455,8 @@ static av_cold int g726_decode_init(AVCodecContext *avctx) · 454 unmodified lines
455455 g726_reset(c);
456456
457457 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
458+ if (!avctx->sample_rate)
459+ avctx->sample_rate = 8000;
458460
459461 return 0;
460462 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t