[FFmpeg-cvslog] lavf/uncodedframecrcenc: use FF_CEIL_RSHIFT()
Clément Bœsch
git at videolan.org
Thu Jan 7 22:34:47 CET 2016
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Thu Jan 7 22:28:08 2016 +0100| [5fbe57c027d09615fd8f435fb1af00613dc9f5fe] | committer: Clément Bœsch
lavf/uncodedframecrcenc: use FF_CEIL_RSHIFT()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5fbe57c027d09615fd8f435fb1af00613dc9f5fe
---
libavformat/uncodedframecrcenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/uncodedframecrcenc.c b/libavformat/uncodedframecrcenc.c
index 414683f..17f4786 100644
--- a/libavformat/uncodedframecrcenc.c
+++ b/libavformat/uncodedframecrcenc.c
@@ -64,7 +64,7 @@ static void video_frame_cksum(AVBPrint *bp, AVFrame *frame)
unsigned cksum = 0;
int h = frame->height;
if ((i == 1 || i == 2) && desc->nb_components >= 3)
- h = -((-h) >> desc->log2_chroma_h);
+ h = FF_CEIL_RSHIFT(h, desc->log2_chroma_h);
data = frame->data[i];
for (y = 0; y < h; y++) {
cksum = av_adler32_update(cksum, data, linesize[i]);
More information about the ffmpeg-cvslog
mailing list