Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-08-20 12:10:44 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-08-22 01:02:48 +0400
commitb3d6543caf3b67e453b7bb5120ba4b3de105f766 (patch)
tree165e74ac209793f36648a758564e0945a35bf751 /libavcodec/dpxenc.c
parent0625a3806628f3abcc6daa87b34ceb0d165b0160 (diff)
dpxenc: fix padding in encode_gbrp12
It was added per pixel instead of per line. Reviewed-by: James Darnley <james.darnley@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dpxenc.c')
-rw-r--r--libavcodec/dpxenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c
index 059d8c6279..aca745bb58 100644
--- a/libavcodec/dpxenc.c
+++ b/libavcodec/dpxenc.c
@@ -159,11 +159,11 @@ static void encode_gbrp12(AVCodecContext *avctx, const AVPicture *pic, uint16_t
value[2] = AV_RL16(src[1] + x) << 4;
value[0] = AV_RL16(src[2] + x) << 4;
}
- for (i = 0; i < pad; i++)
- *dst++ = 0;
for (i = 0; i < 3; i++)
write16(dst++, value[i]);
}
+ for (i = 0; i < pad; i++)
+ *dst++ = 0;
for (i = 0; i < 3; i++)
src[i] += pic->linesize[i]/2;
}