Mercurial > libavcodec.hg
diff dv.c @ 3777:20545fbb6f7c libavcodec
add some #ifdef CONFIG_ENCODERS/DECODERS
author | mru |
---|---|
date | Wed, 27 Sep 2006 19:54:07 +0000 |
parents | 18113845d891 |
children | e1986d9ddc2d |
line wrap: on
line diff
--- a/dv.c Wed Sep 27 19:47:39 2006 +0000 +++ b/dv.c Wed Sep 27 19:54:07 2006 +0000 @@ -1010,6 +1010,7 @@ return 0; } +#ifdef CONFIG_ENCODERS static int dv_encode_mt(AVCodecContext *avctx, void* sl) { DVVideoContext *s = avctx->priv_data; @@ -1028,7 +1029,9 @@ &s->sys->video_place[slice*5]); return 0; } +#endif +#ifdef CONFIG_DECODERS /* NOTE: exactly one frame must be given (120000 bytes for NTSC, 144000 bytes for PAL - or twice those for 50Mbps) */ static int dvvideo_decode_frame(AVCodecContext *avctx, @@ -1068,6 +1071,7 @@ return s->sys->frame_size; } +#endif static inline int dv_write_pack(enum dv_pack_type pack_id, DVVideoContext *c, uint8_t* buf) @@ -1242,6 +1246,7 @@ }; #endif // CONFIG_DVVIDEO_ENCODER +#ifdef CONFIG_DVVIDEO_DECODER AVCodec dvvideo_decoder = { "dvvideo", CODEC_TYPE_VIDEO, @@ -1254,3 +1259,4 @@ CODEC_CAP_DR1, NULL }; +#endif