mirror of
https://github.com/WonderfulToolchain/psxavenc.git
synced 2025-09-16 20:11:28 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7aaae789aa | ||
|
ed4821fcac |
2
.github/scripts/build.sh
vendored
2
.github/scripts/build.sh
vendored
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
ROOT_DIR="$(pwd)"
|
||||
FFMPEG_VERSION="7.1"
|
||||
FFMPEG_VERSION="7.1.1"
|
||||
NUM_JOBS="4"
|
||||
|
||||
if [ $# -eq 1 ]; then
|
||||
|
@@ -588,10 +588,10 @@ void encode_frame_bs(mdec_encoder_t *encoder, const uint8_t *video_frame) {
|
||||
if (real_index > (video_frame_count - 1))
|
||||
real_index = video_frame_count - 1;
|
||||
|
||||
uint8_t *y_plane = video_frames + encoder->video_width * encoder->video_height * 3/2 * real_index;
|
||||
const uint8_t *y_plane = video_frames + encoder->video_width * encoder->video_height * 3/2 * real_index;
|
||||
#else
|
||||
uint8_t *y_plane = video_frame;
|
||||
uint8_t *c_plane = y_plane + (encoder->video_width * encoder->video_height);
|
||||
const uint8_t *y_plane = video_frame;
|
||||
const uint8_t *c_plane = y_plane + (encoder->video_width * encoder->video_height);
|
||||
#endif
|
||||
|
||||
int dct_block_count_x = (encoder->video_width + 15) / 16;
|
||||
|
Reference in New Issue
Block a user