mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
Fix compiler warning
This commit is contained in:
parent
d201863e0f
commit
48f1c6c2d6
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ static bool in_frame_to_png(
|
|||
av_image_alloc(
|
||||
rgbFrame->data, rgbFrame->linesize, targetWidth, targetHeight, AV_PIX_FMT_RGB24, 1);
|
||||
sws_scale(
|
||||
swCtx, inframe->data, inframe->linesize, 0,
|
||||
swCtx,
|
||||
// const_cast<const uint8_t * const*>(inframe->data)
|
||||
(const uint8_t * const*)(inframe->data),
|
||||
inframe->linesize, 0,
|
||||
inframe->height, rgbFrame->data, rgbFrame->linesize);
|
||||
|
||||
LOGV("Scaling image: %llu", get_timestamp() - start);
|
||||
|
|
Loading…
Add table
Reference in a new issue