Skip to content

Commit 4a93ea3

Browse files
committed
修改X环境下窗口参数
1 parent 69b9fd3 commit 4a93ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glffmpeg_example/glffmpeg_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ int main(int argc, char* argv[])
412412
glXSwapBuffers(s_pDisplay, s_hWnd);
413413

414414
// capture the frame
415-
glReadPixels(0, 0, WINDOW_SIZE, WINDOW_SIZE, GL_RGB, GL_UNSIGNED_BYTE, imageBuffer);
415+
glReadPixels(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT, GL_RGB, GL_UNSIGNED_BYTE, imageBuffer);
416416
// encode the frame to the video strem
417417
encodeFrame(STREAM_NAME);
418418

0 commit comments

Comments
 (0)