aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer2008-02-01 03:34:43 +0000
committerMichael Niedermayer2008-02-01 03:34:43 +0000
commite68c7a4abe9c259af44e3cc1414674743e76cc32 (patch)
treed3796e2c30323590190eb80fc14473d50196da8a /libavcodec
parent0431d3b12131bb6f8eb9c46336efbef494f203da (diff)
const
Originally committed as revision 11710 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mdec.c2
-rw-r--r--libavcodec/mpeg12.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index e91d5b7858..ed2476213d 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -158,7 +158,7 @@ static inline void idct_put(MDECContext *a, int mb_x, int mb_y){
static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- uint8_t *buf, int buf_size)
+ const uint8_t *buf, int buf_size)
{
MDECContext * const a = avctx->priv_data;
AVFrame *picture = data;
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 5b006c3c0f..87f673d121 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2220,7 +2220,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
/* handle buffering and image synchronisation */
static int mpeg_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- uint8_t *buf, int buf_size)
+ const uint8_t *buf, int buf_size)
{
Mpeg1Context *s = avctx->priv_data;
const uint8_t *buf_end;