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:
authorClément Bœsch <u@pkh.me>2016-01-08 00:28:08 +0300
committerClément Bœsch <u@pkh.me>2016-01-08 00:28:08 +0300
commit5fbe57c027d09615fd8f435fb1af00613dc9f5fe (patch)
treedb2366b54f8676a29a5f6c0473e34eb21e718322 /libavformat/uncodedframecrcenc.c
parent90cd02059b6f1a3776ca1581e8c94a59f6c70ec6 (diff)
lavf/uncodedframecrcenc: use FF_CEIL_RSHIFT()
Diffstat (limited to 'libavformat/uncodedframecrcenc.c')
-rw-r--r--libavformat/uncodedframecrcenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/uncodedframecrcenc.c b/libavformat/uncodedframecrcenc.c
index 414683fe23..17f478626e 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]);