Skip to content

Commit

Permalink
Fix -Wnarrowing with Qt 6
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Oct 21, 2021
1 parent 99b9c20 commit c75d91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lottie/details/lottie_cache_frame_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void DecodeYUV2RGB(
0
};
uint8_t *dst[AV_NUM_DATA_POINTERS] = { to.bits(), nullptr };
int dstLineSize[AV_NUM_DATA_POINTERS] = { to.bytesPerLine(), 0 };
int dstLineSize[AV_NUM_DATA_POINTERS] = { int(to.bytesPerLine()), 0 };

sws_scale(
context.get(),
Expand Down Expand Up @@ -96,7 +96,7 @@ void EncodeRGB2YUV(

// AV_NUM_DATA_POINTERS defined in AVFrame struct
const uint8_t *src[AV_NUM_DATA_POINTERS] = { from.bits(), nullptr };
int srcLineSize[AV_NUM_DATA_POINTERS] = { from.bytesPerLine(), 0 };
int srcLineSize[AV_NUM_DATA_POINTERS] = { int(from.bytesPerLine()), 0 };
uint8_t *dst[AV_NUM_DATA_POINTERS] = {
to.yData(),
to.uData(),
Expand Down

0 comments on commit c75d91f

Please sign in to comment.