Skip to content

Commit

Permalink
Issue #46: fixed FFmpeg strides in profiler app
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Oct 30, 2018
1 parent a167db6 commit b80276d
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 @@ -133,11 +133,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};
int srcStride[] = {4 * w};
int srcSliceY = 0;
int srcSliceH = h;
unsigned char *dst[] = {bgra_ffmpeg};
int dstStride[] = {4};
int dstStride[] = {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 b80276d

Please sign in to comment.