+ } else { + ok(!strncmp((const char *)pixels, (const char *)buffer, frame_size), + "Test %u, frame %u: Pixels mismatch\n", i, frame_index); + };
It's a little strange to use strncmp for pixel data. This will break if the data contains a 0 byte. I think you want memcmp.