ffmpeg deprecated avpicture_fill
modify avpicture_fill to av_image_fill_arrays
This commit is contained in:
parent
d05c9d5f51
commit
e326d04aed
|
|
@ -672,7 +672,8 @@ FFmpegFrame::Ptr FFmpegSws::inputFrame(const FFmpegFrame::Ptr &frame, int &ret,
|
||||||
auto out = std::make_shared<FFmpegFrame>();
|
auto out = std::make_shared<FFmpegFrame>();
|
||||||
if (!out->get()->data[0]) {
|
if (!out->get()->data[0]) {
|
||||||
if (data) {
|
if (data) {
|
||||||
avpicture_fill((AVPicture *) out->get(), data, _target_format, target_width, target_height);
|
//avpicture_fill((AVPicture *) out->get(), data, _target_format, target_width, target_height);
|
||||||
|
av_image_fill_arrays(out->get()->data, out->get()->linesize, data, _target_format, target_width, target_height, 1);
|
||||||
} else {
|
} else {
|
||||||
out->fillPicture(_target_format, target_width, target_height);
|
out->fillPicture(_target_format, target_width, target_height);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue