Skip to content

Commit

Permalink
Issue #46: added a static cast from size_t to int to make FFmpeg func…
Browse files Browse the repository at this point in the history
…tion happy in profiler app
  • Loading branch information
dzhoshkun committed Apr 16, 2019
1 parent 396764a commit 6d337f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/rgbswap/profile_argb_to_bgra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ int main(int argc, char *argv[])
unsigned char *bgra_ffmpeg = nullptr;
bgra_ffmpeg = reinterpret_cast<unsigned char *>(malloc(l * sizeof(unsigned char)));
unsigned char *srcSlice[] = {argb};
int srcStride[] = {4 * w};
int srcStride[] = {static_cast<int>(4 * w)};
int srcSliceY = 0;
int srcSliceH = h;
unsigned char *dst[] = {bgra_ffmpeg};
int dstStride[] = {4 * w};
int dstStride[] = {static_cast<int>(4 * w)};
int srcW = w, srcH = h, dstW = w, dstH = h;
AVPixelFormat srcFormat = AV_PIX_FMT_ARGB, dstFormat = AV_PIX_FMT_BGRA;
SwsContext *c = sws_getCachedContext(nullptr, srcW, srcH, srcFormat, dstW, dstH, dstFormat, 0, nullptr, nullptr, nullptr);
Expand Down

0 comments on commit 6d337f4

Please sign in to comment.