add some #ifdef CONFIG_ENCODERS/DECODERS

Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård
2006-09-27 19:54:07 +00:00
parent 191e8ca752
commit 62bb489b13
15 changed files with 102 additions and 29 deletions

View File

@ -164,7 +164,7 @@ static int raw_close_decoder(AVCodecContext *avctx)
}
/* RAW Encoder Implementation */
#ifdef CONFIG_RAWVIDEO_ENCODER
static int raw_init_encoder(AVCodecContext *avctx)
{
avctx->coded_frame = (AVFrame *)avctx->priv_data;
@ -182,7 +182,6 @@ static int raw_encode(AVCodecContext *avctx,
avctx->height, frame, buf_size);
}
#ifdef CONFIG_RAWVIDEO_ENCODER
AVCodec rawvideo_encoder = {
"rawvideo",
CODEC_TYPE_VIDEO,