aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-03-05 16:10:13 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-05 16:10:13 +0000
commit21e59552d6894917d3d16a3984268a171f4a1c98 (patch)
tree59ee03f8bc347a80ff3d8dac01dc707471465e4b /libavcodec/mpegvideo.c
parent3b4f73dc76d018ef9833da44a8daa5d975a10a0b (diff)
downloadffmpeg-21e59552d6894917d3d16a3984268a171f4a1c98.tar.gz
extended option for h263+ patch by (fixounet at free dot fr) with some minor modifications
Originally committed as revision 1622 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 7a2b10ecb6..8bfc0f049d 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -581,9 +581,10 @@ int MPV_encode_init(AVCodecContext *avctx)
case CODEC_ID_H263P:
s->out_format = FMT_H263;
s->h263_plus = 1;
- s->unrestricted_mv = 1;
- s->h263_aic = 1;
-
+ /* Fx */
+ s->unrestricted_mv=(avctx->flags & CODEC_FLAG_H263P_UMV) ? 1:0;
+ s->h263_aic= (avctx->flags & CODEC_FLAG_H263P_AIC) ? 1:0;
+ /* /Fx */
/* These are just to be sure */
s->umvplus = 1;
avctx->delay=0;