lavc/cfhd: use AV_CEIL_RSHIFT instead of deprecated FF_CEIL_RSHIFT
authorClément Bœsch <u@pkh.me>
Tue, 8 May 2018 10:45:11 +0000 (12:45 +0200)
committerClément Bœsch <u@pkh.me>
Tue, 8 May 2018 10:47:38 +0000 (12:47 +0200)
libavcodec/cfhd.c

index f10742f..7ceb803 100644 (file)
@@ -627,7 +627,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
                 goto end;
             }
 
-            bytes = FFALIGN(FF_CEIL_RSHIFT(get_bits_count(&s->gb), 3), 4);
+            bytes = FFALIGN(AV_CEIL_RSHIFT(get_bits_count(&s->gb), 3), 4);
             if (bytes > bytestream2_get_bytes_left(&gb)) {
                 av_log(avctx, AV_LOG_ERROR, "Bitstream overread error\n");
                 ret = AVERROR(EINVAL);