Mercurial > libavcodec.hg
diff wmv2.c @ 1070:6da5ae9ee199 libavcodec
more #ifdef CONFIG_ENCODERS patch by (Wolfgang Hesseler <qv at multimediaware dot com>) with modifications by me (s/WOLFGANG/CONFIG_ENCODERS/ and some other fixes)
author | michaelni |
---|---|
date | Sun, 16 Feb 2003 23:05:38 +0000 |
parents | b32afefe7d33 |
children | f59c3f66363b |
line wrap: on
line diff
--- a/wmv2.c Fri Feb 14 21:27:25 2003 +0000 +++ b/wmv2.c Sun Feb 16 23:05:38 2003 +0000 @@ -79,6 +79,7 @@ return 0; } +#ifdef CONFIG_ENCODERS static int wmv2_encode_init(AVCodecContext *avctx){ Wmv2Context * const w= avctx->priv_data; @@ -255,6 +256,7 @@ msmpeg4_encode_block(s, block[i], i); } } +#endif //CONFIG_ENCODERS static void parse_mb_skip(Wmv2Context * w){ int mb_x, mb_y; @@ -828,6 +830,7 @@ CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, }; +#ifdef CONFIG_ENCODERS AVCodec wmv2_encoder = { "wmv2", CODEC_TYPE_VIDEO, @@ -837,4 +840,4 @@ MPV_encode_picture, MPV_encode_end, }; - +#endif