Skip to content
Snippets Groups Projects
Commit cc29c232 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #16729: video: remove sizeof(unsigned char)

parent 511f7a0c
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ int getBufferSize(int width, int height, int format)
{
enum PixelFormat fmt = (enum PixelFormat) format;
// determine required buffer size and allocate buffer
return sizeof(unsigned char) * avpicture_get_size(fmt, width, height);
return avpicture_get_size(fmt, width, height);
}
string openTemp(string path, std::ofstream& os)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment