Skip to content

Commit

Permalink
fix another bit of cppcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
i-rinat committed Jun 11, 2016
1 parent cf02e7a commit 9dca3ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/conv-speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ main(int argc, char *argv[])

const int width = 720;
const int height = 480;
VdpGetProcAddress *get_proc_address;
VdpDevice vdp_device = create_vdp_device();
VdpVideoSurface vdp_video_surface;
VdpVideoMixer vdp_video_mixer;
Expand Down
5 changes: 4 additions & 1 deletion tests/test-006.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ void *thread_1_func(void *p)
ASSERT_OK(vdpBitmapSurfaceCreate(device, VDP_RGBA_FORMAT_B8G8R8A8, 300, 150, 1, &bmp_surface));

uint32_t buf[300*150];
for (uint32_t k = 0; k < 300*150; k ++)
buf[k] = 0xff000000u + (k & 0xffffffu);

const void * const source_data[] = { buf };
uint32_t source_pitches[] = { 4 * 300 };
for (int k = 0; k < 300*150; k ++) { buf[k] = 0xff000000 + (k & 0xffffff); }

ASSERT_OK(vdpBitmapSurfacePutBitsNative(bmp_surface, source_data, source_pitches, NULL));
VdpTime vdpTime = 0;
ASSERT_OK(vdpPresentationQueueBlockUntilSurfaceIdle(pq, out_surface, &vdpTime));
Expand Down

0 comments on commit 9dca3ff

Please sign in to comment.