mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/mjpegenc: disable unused code with AMV
disable unused amv_encode_picture() when AMV encoder is not configured. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
498c90c708
commit
1939b90306
@ -346,6 +346,7 @@ void ff_mjpeg_encode_mb(MpegEncContext *s, int16_t block[12][64])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_AMV_ENCODER
|
||||||
// maximum over s->mjpeg_vsample[i]
|
// maximum over s->mjpeg_vsample[i]
|
||||||
#define V_MAX 2
|
#define V_MAX 2
|
||||||
static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
|
static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
|
||||||
@ -387,6 +388,7 @@ static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
av_frame_free(&pic);
|
av_frame_free(&pic);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define OFFSET(x) offsetof(MpegEncContext, x)
|
#define OFFSET(x) offsetof(MpegEncContext, x)
|
||||||
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
|
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
|
||||||
|
Loading…
Reference in New Issue
Block a user