Mercurial > libavcodec.hg
changeset 1858:ea2a4058441c libavcodec
silence warnings
author | iive |
---|---|
date | Thu, 04 Mar 2004 14:58:48 +0000 |
parents | 00a6bfc81010 |
children | 17a445838da3 |
files | avcodec.h mpeg12.c utils.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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; }
--- 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]; }