mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
copy pts and format props between lavfi buffer and frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c7c976c6d7
commit
a80217a5ee
@ -66,6 +66,7 @@ int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
|
||||
frame->pkt_pos = samplesref->pos;
|
||||
frame->format = samplesref->format;
|
||||
frame->nb_samples = samplesref->audio->nb_samples;
|
||||
frame->pts = samplesref->pts;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -86,6 +87,8 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
|
||||
frame->sample_aspect_ratio = picref->video->sample_aspect_ratio;
|
||||
frame->width = picref->video->w;
|
||||
frame->height = picref->video->h;
|
||||
frame->format = picref->format;
|
||||
frame->pts = picref->pts;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user