aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-07-04 17:45:13 +0000
committerPaul B Mahol <onemda@gmail.com>2012-07-04 23:40:18 +0000
commit1f9bc3104afd98054c1b0f7b407e8791436c8aa0 (patch)
tree51e7bdd612058bbcf2be1b7d0f58f0d68801a9d7 /libavcodec
parent3b9dd906d18f4cd801ceedd20d800a7e53074be9 (diff)
downloadffmpeg-1f9bc3104afd98054c1b0f7b407e8791436c8aa0.tar.gz
sanm: remove code duplication
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/sanm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 3a734166ff..2b548f274a 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -480,9 +480,8 @@ static int old_codec37(SANMVideoContext *ctx, int top,
if (compr == 4 && !code) {
if (bytestream2_get_bytes_left(&ctx->gb) < 1)
return AVERROR_INVALIDDATA;
- skip_run = bytestream2_get_byteu(&ctx->gb);
- for (k = 0; k < 4; k++)
- memcpy(dst + i + k * stride, prev + i + k * stride, 4);
+ skip_run = bytestream2_get_byteu(&ctx->gb) + 1;
+ i -= 4;
} else {
int mx, my;