# HG changeset patch # User iive # Date 1078412328 0 # Node ID ea2a4058441cf94caa66d2517a1530e82dd6b9e0 # Parent 00a6bfc810107196e4e1c14e5c1e6a2be5c66c5a silence warnings diff -r 00a6bfc81010 -r ea2a4058441c avcodec.h --- a/avcodec.h Wed Mar 03 19:29:00 2004 +0000 +++ b/avcodec.h Thu Mar 04 14:58:48 2004 +0000 @@ -1292,7 +1292,7 @@ * - encoding: unused * - decoding: set by user, if not set then the native format will always be choosen */ - enum PixelFormat (*get_format)(struct AVCodecContext *s, enum PixelFormat * fmt); + enum PixelFormat (*get_format)(struct AVCodecContext *s, const enum PixelFormat * fmt); /** * DTG active format information (additionnal aspect ratio diff -r 00a6bfc81010 -r ea2a4058441c mpeg12.c --- a/mpeg12.c Wed Mar 03 19:29:00 2004 +0000 +++ b/mpeg12.c Thu Mar 04 14:58:48 2004 +0000 @@ -1306,7 +1306,7 @@ if (HAS_CBP(mb_type)) { cbp = get_vlc2(&s->gb, mb_pat_vlc.table, MB_PAT_VLC_BITS, 1); - if (cbp < 0 || (cbp == 0) && (s->chroma_format < 2) ){ + if (cbp < 0 || ((cbp == 0) && (s->chroma_format < 2)) ){ av_log(s->avctx, AV_LOG_ERROR, "invalid cbp at %d %d\n", s->mb_x, s->mb_y); return -1; } diff -r 00a6bfc81010 -r ea2a4058441c utils.c --- a/utils.c Wed Mar 03 19:29:00 2004 +0000 +++ b/utils.c Thu Mar 04 14:58:48 2004 +0000 @@ -338,7 +338,7 @@ return 0; } -enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, enum PixelFormat * fmt){ +enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat * fmt){ return fmt[0]; }