diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-18 19:41:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-18 19:41:48 +0200 |
commit | bf301258b49ff6f700a096c5752864e789c6e6b3 (patch) | |
tree | 0728f30a569ad66df9aa37d2112077799f1f3eee /libavcodec/snowenc.c | |
parent | 25f4e9387d0efd6fe2ac51d78eb681c542a6f82d (diff) | |
download | ffmpeg-bf301258b49ff6f700a096c5752864e789c6e6b3.tar.gz |
avcodec/snowenc: add FF_MPV_COMMON_OPTS
This fixes the ratecontrol code with snow
adding FF_MPV_COMMON_OPTS is needed as the generic rate control options
are currently in the (unrelated) MpegEncContext
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index eaeafa987d..30b1ef66c1 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -29,6 +29,7 @@ #include "rangecoder.h" #include "mathops.h" +#define FF_MPV_OFFSET(x) (offsetof(MpegEncContext, x) + offsetof(SnowContext, m)) #include "mpegvideo.h" #include "h263.h" @@ -1870,6 +1871,7 @@ static av_cold int encode_end(AVCodecContext *avctx) #define OFFSET(x) offsetof(SnowContext, x) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM static const AVOption options[] = { + FF_MPV_COMMON_OPTS { "memc_only", "Only do ME/MC (I frames -> ref, P frame -> ME+MC).", OFFSET(memc_only), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE }, { "no_bitstream", "Skip final bitstream writeout.", OFFSET(no_bitstream), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE }, { NULL }, |