lavfi/avcodec: deprecate avfilter_fill_frame_from_*_buffer_ref API
Deprecate functions: avfilter_fill_frame_from_buffer_ref avfilter_fill_frame_from_audio_buffer_ref avfilter_fill_frame_from_video_buffer_ref and schedule to drop them at the next API major bump. The function avfilter_copy_buf_props() should be used instead.
This commit is contained in:
2
ffmpeg.c
2
ffmpeg.c
@@ -1964,7 +1964,7 @@ static int poll_filters(void)
|
||||
|
||||
switch (ost->filter->filter->inputs[0]->type) {
|
||||
case AVMEDIA_TYPE_VIDEO:
|
||||
avfilter_fill_frame_from_video_buffer_ref(filtered_frame, picref);
|
||||
avfilter_copy_buf_props(filtered_frame, picref);
|
||||
filtered_frame->pts = frame_pts;
|
||||
if (!ost->frame_aspect_ratio)
|
||||
ost->st->codec->sample_aspect_ratio = picref->video->sample_aspect_ratio;
|
||||
|
Reference in New Issue
Block a user