aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-12-01 23:54:58 +0100
committerPaul B Mahol <onemda@gmail.com>2022-12-01 23:55:58 +0100
commit1bebcd43e1a6d7e3a0743adcc10245e5d51f72b1 (patch)
tree92c0e4e772bd55065c0bb19009bd143cde93c54e /libavcodec
parentbfa2a498575760a0ba4786828edf9f7a5a4fd1c1 (diff)
downloadffmpeg-1bebcd43e1a6d7e3a0743adcc10245e5d51f72b1.tar.gz
avcodec/smcenc: fix silly typo
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/smcenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/smcenc.c b/libavcodec/smcenc.c
index df6ada3b7b..9ff9dc697d 100644
--- a/libavcodec/smcenc.c
+++ b/libavcodec/smcenc.c
@@ -216,7 +216,7 @@ static void smc_encode_stream(SMCContext *s, const AVFrame *frame,
while (block_counter + coded_blocks < total_blocks && coded_blocks < 256) {
const int y_size = FFMIN(4, height - cur_y);
- const int x_size = FFMIN(4, width - cur_y);
+ const int x_size = FFMIN(4, width - cur_x);
const int nb_elements = x_size * y_size;
uint8_t block_values[16] = { 0 };
for (int y = 0; y < y_size; y++)