Commit c2eae4ba authored by Robert Nagy's avatar Robert Nagy Committed by Michael Niedermayer

lavfi: Fill linesize, sample_rate and channel_layout fields in...

lavfi: Fill linesize, sample_rate and channel_layout fields in avfilter_fill_frame_from_audio_buffer_ref.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d187e761
......@@ -59,10 +59,13 @@ int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
return AVERROR(EINVAL);
memcpy(frame->data, samplesref->data, sizeof(frame->data));
frame->pkt_pos = samplesref->pos;
frame->format = samplesref->format;
frame->nb_samples = samplesref->audio->nb_samples;
frame->pts = samplesref->pts;
memcpy(frame->linesize, samplesref->linesize, sizeof(frame->linesize));
frame->pkt_pos = samplesref->pos;
frame->format = samplesref->format;
frame->nb_samples = samplesref->audio->nb_samples;
frame->pts = samplesref->pts;
frame->sample_rate = samplesref->audio->sample_rate;
frame->channel_layout = samplesref->audio->channel_layout;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment