[FFmpeg-cvslog] dpxenc: fix padding in encode_gbrp12
Christophe Gisquet
git at videolan.org
Thu Aug 21 23:12:16 CEST 2014
ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Wed Aug 20 08:10:44 2014 +0000| [b3d6543caf3b67e453b7bb5120ba4b3de105f766] | committer: Michael Niedermayer
dpxenc: fix padding in encode_gbrp12
It was added per pixel instead of per line.
Reviewed-by: James Darnley <james.darnley at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3d6543caf3b67e453b7bb5120ba4b3de105f766
---
libavcodec/dpxenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c
index 059d8c6..aca745b 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;
}
More information about the ffmpeg-cvslog
mailing list