From 095f08d5992491c6790061db6a3f083da8a97a1a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Feb 2008 15:08:55 +0000 Subject: [PATCH] some const Originally committed as revision 11758 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dv.c | 4 ++-- libavcodec/dvdata.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 8db3226..66c6d3c 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -363,7 +363,7 @@ static inline void bit_copy(PutBitContext *pb, GetBitContext *gb) /* mb_x and mb_y are in units of 8 pixels */ static inline void dv_decode_video_segment(DVVideoContext *s, - uint8_t *buf_ptr1, + const uint8_t *buf_ptr1, const uint16_t *mb_pos_ptr) { int quant, dc, dct_mode, class1, j; @@ -372,7 +372,7 @@ static inline void dv_decode_video_segment(DVVideoContext *s, int c_offset; uint8_t *y_ptr; void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block); - uint8_t *buf_ptr; + const uint8_t *buf_ptr; PutBitContext pb, vs_pb; GetBitContext gb; BlockInfo mb_data[5 * 6], *mb, *mb1; diff --git a/libavcodec/dvdata.h b/libavcodec/dvdata.h index 05f7bcd..50ea537 100644 --- a/libavcodec/dvdata.h +++ b/libavcodec/dvdata.h @@ -2661,7 +2661,7 @@ enum dv_pack_type { /* largest possible DV frame, in bytes (PAL 50Mbps) */ #define DV_MAX_FRAME_SIZE 288000 -static inline const DVprofile* dv_frame_profile(uint8_t* frame) +static inline const DVprofile* dv_frame_profile(const uint8_t* frame) { if ((frame[3] & 0x80) == 0) { /* DSF flag */ /* it's an NTSC format */ -- 2.7.4