[FFmpeg-cvslog] h264_mb: constify block_offset
Anton Khirnov
git at videolan.org
Sat Mar 21 17:30:49 CET 2015
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Jan 27 16:05:31 2015 +0100| [51822879e7732ee8175dad98dde1a135f6e5c1a4] | committer: Anton Khirnov
h264_mb: constify block_offset
It is read-only in this code.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=51822879e7732ee8175dad98dde1a135f6e5c1a4
---
libavcodec/h264_mb.c | 4 ++--
libavcodec/h264_mb_template.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/h264_mb.c b/libavcodec/h264_mb.c
index a9ea97c..cfe975e 100644
--- a/libavcodec/h264_mb.c
+++ b/libavcodec/h264_mb.c
@@ -616,7 +616,7 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h,
int simple,
int transform_bypass,
int pixel_shift,
- int *block_offset,
+ const int *block_offset,
int linesize,
uint8_t *dest_y, int p)
{
@@ -732,7 +732,7 @@ static av_always_inline void hl_decode_mb_idct_luma(H264Context *h, H264SliceCon
int is_h264, int simple,
int transform_bypass,
int pixel_shift,
- int *block_offset,
+ const int *block_offset,
int linesize,
uint8_t *dest_y, int p)
{
diff --git a/libavcodec/h264_mb_template.c b/libavcodec/h264_mb_template.c
index 556a2b5..4689d62 100644
--- a/libavcodec/h264_mb_template.c
+++ b/libavcodec/h264_mb_template.c
@@ -49,7 +49,7 @@ static av_noinline void FUNC(hl_decode_mb)(H264Context *h, H264SliceContext *sl)
uint8_t *dest_y, *dest_cb, *dest_cr;
int linesize, uvlinesize /*dct_offset*/;
int i, j;
- int *block_offset = &h->block_offset[0];
+ const int *block_offset = &h->block_offset[0];
const int transform_bypass = !SIMPLE && (sl->qscale == 0 && h->sps.transform_bypass);
/* is_h264 should always be true if SVQ3 is disabled. */
const int is_h264 = !CONFIG_SVQ3_DECODER || SIMPLE || h->avctx->codec_id == AV_CODEC_ID_H264;
@@ -281,7 +281,7 @@ static av_noinline void FUNC(hl_decode_mb_444)(H264Context *h, H264SliceContext
uint8_t *dest[3];
int linesize;
int i, j, p;
- int *block_offset = &h->block_offset[0];
+ const int *block_offset = &h->block_offset[0];
const int transform_bypass = !SIMPLE && (sl->qscale == 0 && h->sps.transform_bypass);
const int plane_count = (SIMPLE || !CONFIG_GRAY || !(h->flags & CODEC_FLAG_GRAY)) ? 3 : 1;
More information about the ffmpeg-cvslog
mailing list