mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
replace ffmpeg deprecated api avpicture_fill to av_image_fill_arrays (#2279)
This commit is contained in:
parent
cba46e2c87
commit
1cc0f51c07
@ -672,7 +672,7 @@ 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);
|
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
Block a user