diff options
author | Wolfgang Hesseler <qv@multimediaware.com> | 2003-02-16 23:05:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-02-16 23:05:38 +0000 |
commit | 7604246d1a27a0c32e036bb01704787c435fa153 (patch) | |
tree | 7ea7cf2a9983f549dc42b1b4d178097ab3579405 /libavcodec/wmv2.c | |
parent | 0a6de063b05088c9c9556f0aefd2171906e8baf4 (diff) | |
download | ffmpeg-7604246d1a27a0c32e036bb01704787c435fa153.tar.gz |
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)
Originally committed as revision 1588 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmv2.c')
-rw-r--r-- | libavcodec/wmv2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c index 294b2f7b53..bbf0ad12ca 100644 --- a/libavcodec/wmv2.c +++ b/libavcodec/wmv2.c @@ -79,6 +79,7 @@ static int encode_ext_header(Wmv2Context *w){ return 0; } +#ifdef CONFIG_ENCODERS static int wmv2_encode_init(AVCodecContext *avctx){ Wmv2Context * const w= avctx->priv_data; @@ -255,6 +256,7 @@ void ff_wmv2_encode_mb(MpegEncContext * s, 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 @@ AVCodec wmv2_decoder = { CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, }; +#ifdef CONFIG_ENCODERS AVCodec wmv2_encoder = { "wmv2", CODEC_TYPE_VIDEO, @@ -837,4 +840,4 @@ AVCodec wmv2_encoder = { MPV_encode_picture, MPV_encode_end, }; - +#endif |