mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
71deaa48af
commit
a8807bc915
1 changed files with 4 additions and 0 deletions
|
@ -679,6 +679,10 @@ bool Instance::Inner::processFrame(int32 offset, int32 framesize) {
|
||||||
|
|
||||||
AVFrame *frame = av_frame_alloc();
|
AVFrame *frame = av_frame_alloc();
|
||||||
|
|
||||||
|
frame->format = d->codecContext->sample_fmt;
|
||||||
|
frame->channels = d->codecContext->channels;
|
||||||
|
frame->channel_layout = d->codecContext->channel_layout;
|
||||||
|
frame->sample_rate = d->codecContext->sample_rate;
|
||||||
frame->nb_samples = d->dstSamples;
|
frame->nb_samples = d->dstSamples;
|
||||||
frame->pts = av_rescale_q(d->fullSamples, AVRational { 1, d->codecContext->sample_rate }, d->codecContext->time_base);
|
frame->pts = av_rescale_q(d->fullSamples, AVRational { 1, d->codecContext->sample_rate }, d->codecContext->time_base);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue