Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libctru/include/3ds/services/mvd.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

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

#define MVD_H264_LEVEL_1_0 0x00 //H.264 level 1.0.
Expand Down
2 changes: 1 addition & 1 deletion libctru/source/services/mvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static Result MVDSTD_CalculateWorkBufSize(const MVDSTD_CalculateWorkBufSizeConfi
u32* cmdbuf = getThreadCommandBuffer();

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

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