diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-26 08:55:32 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-05 03:04:05 +0200 |
commit | cee40a945abc3568e270899eefb8bf6cf7e5ab3c (patch) | |
tree | 238c335ada0b6fe2ca97f531a32e3e7a2ef1d996 /libavcodec/wmv2.h | |
parent | 7e8c8cc04b1cde346fb31d2cae70dda0385fa51b (diff) | |
download | ffmpeg-cee40a945abc3568e270899eefb8bf6cf7e5ab3c.tar.gz |
avcodec/mpegvideo_motion: Constify ff_mpv_motion
Also constify the corresponding code in mpegvideo.c that handles
lowres.
(Unfortunately, not everything that is const could be constified:
ref_picture could be made const uint8_t* const* if C allowed the
safe automatic conversion from uint8_t**; and pix_op, qpix_op
could be made to point to const function pointers, but C's handling
of const in pointers to arrays is broken.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/wmv2.h')
-rw-r--r-- | libavcodec/wmv2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmv2.h b/libavcodec/wmv2.h index cdd58cf011..e49b81cdfb 100644 --- a/libavcodec/wmv2.h +++ b/libavcodec/wmv2.h @@ -39,7 +39,7 @@ void ff_wmv2_common_init(MpegEncContext *s); void ff_mspel_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, - uint8_t **ref_picture, op_pixels_func (*pix_op)[4], + uint8_t *const *ref_picture, op_pixels_func (*pix_op)[4], int motion_x, int motion_y, int h); |