diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-09 13:17:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-10 18:49:35 +0200 |
commit | 68a90ac3e6bc192d78b30faa9f771c14775c93e8 (patch) | |
tree | 6490fa80c8a65d5d67ac55249f9afea33c58faff /libavcodec/mpegutils.c | |
parent | fa5440cbcd2a7721073d980e07ef0c4d6d1301ac (diff) | |
download | ffmpeg-68a90ac3e6bc192d78b30faa9f771c14775c93e8.tar.gz |
avcodec/mpegutils: Constify ff_print_debug_info2, ff_draw_horiz_band
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegutils.c')
-rw-r--r-- | libavcodec/mpegutils.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/mpegutils.c b/libavcodec/mpegutils.c index 395bd38ff5..ff9418232b 100644 --- a/libavcodec/mpegutils.c +++ b/libavcodec/mpegutils.c @@ -49,7 +49,7 @@ static int add_mb(AVMotionVector *mb, uint32_t mb_type, } void ff_draw_horiz_band(AVCodecContext *avctx, - AVFrame *cur, AVFrame *last, + const AVFrame *cur, const AVFrame *last, int y, int h, int picture_structure, int first_field, int low_delay) { @@ -68,7 +68,7 @@ void ff_draw_horiz_band(AVCodecContext *avctx, return; if (avctx->draw_horiz_band) { - AVFrame *src; + const AVFrame *src; int offset[AV_NUM_DATA_POINTERS]; int i; @@ -153,9 +153,10 @@ static char get_interlacement_char(int mb_type) return ' '; } -void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_table, - uint32_t *mbtype_table, int8_t *qscale_table, int16_t (*motion_val[2])[2], - int mb_width, int mb_height, int mb_stride, int quarter_sample) +void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, + const uint8_t *mbskip_table, const uint32_t *mbtype_table, + const int8_t *qscale_table, int16_t (*const motion_val[2])[2], + int mb_width, int mb_height, int mb_stride, int quarter_sample) { if ((avctx->export_side_data & AV_CODEC_EXPORT_DATA_MVS) && mbtype_table && motion_val[0]) { const int shift = 1 + quarter_sample; |