Skip to content

Commit 5ff34cd

Browse files
Core-2-Extremefincs
authored andcommitted
Fixed memcpy size
1 parent 6381e9b commit 5ff34cd

File tree

2 files changed

+2
-2
lines changed
  • libctru

2 files changed

+2
-2
lines changed

libctru/include/3ds/services/mvd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#define MVD_CALC_WITH_LEVEL_FLAG_NONE 0x00 //Nothing.
2424
#define MVD_CALC_WITH_LEVEL_FLAG_ENABLE_CALC 0x01 //Enable calculation with level.
25-
#define MVD_CALC_WITH_LEVEL_FLAG_ENABLE_EXTRA_OP 0x02 //Enable extra op after base calculation (see : https://www.3dbrew.org/wiki/MVDSTD:CalculateWorkBufSize.
25+
#define MVD_CALC_WITH_LEVEL_FLAG_ENABLE_EXTRA_OP 0x02 //Enable extra op after base calculation (see : https://www.3dbrew.org/wiki/MVDSTD:CalculateWorkBufSize).
2626
#define MVD_CALC_WITH_LEVEL_FLAG_UNK 0x04 //Unknown.
2727

2828
#define MVD_H264_LEVEL_1_0 0x00 //H.264 level 1.0.

libctru/source/services/mvd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static Result MVDSTD_CalculateWorkBufSize(const MVDSTD_CalculateWorkBufSizeConfi
5858
u32* cmdbuf = getThreadCommandBuffer();
5959

6060
cmdbuf[0] = IPC_MakeHeader(0x3,12,0); // 0x30300
61-
memcpy(&cmdbuf[1], config, sizeof(MVDSTD_OutputBuffersEntryList));
61+
memcpy(&cmdbuf[1], config, sizeof(MVDSTD_CalculateWorkBufSizeConfig));
6262

6363
if(R_FAILED(ret=svcSendSyncRequest(mvdstdHandle)))return ret;
6464
if(size_out) *size_out = cmdbuf[2];

0 commit comments

Comments
 (0)