summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
committerMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
commit62bb489b13c1f7967946bf538492dce0af1150fe (patch)
treef33797575ec10e2efe0b5b94b4251498fedd62e1 /libavcodec/dv.c
parent191e8ca75279073699e0c0f25128b2b2088d1cbb (diff)
downloadffmpeg-62bb489b13c1f7967946bf538492dce0af1150fe.tar.gz
add some #ifdef CONFIG_ENCODERS/DECODERS
Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index fa2952dc65..c6f039923d 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -1010,6 +1010,7 @@ static int dv_decode_mt(AVCodecContext *avctx, void* sl)
return 0;
}
+#ifdef CONFIG_ENCODERS
static int dv_encode_mt(AVCodecContext *avctx, void* sl)
{
DVVideoContext *s = avctx->priv_data;
@@ -1028,7 +1029,9 @@ static int dv_encode_mt(AVCodecContext *avctx, void* sl)
&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 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
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 @@ AVCodec dvvideo_encoder = {
};
#endif // CONFIG_DVVIDEO_ENCODER
+#ifdef CONFIG_DVVIDEO_DECODER
AVCodec dvvideo_decoder = {
"dvvideo",
CODEC_TYPE_VIDEO,
@@ -1254,3 +1259,4 @@ AVCodec dvvideo_decoder = {
CODEC_CAP_DR1,
NULL
};
+#endif