summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-05-25 18:53:38 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-05-25 18:53:38 +0000
commitbd97e328c4370eb7d49bf1450d33099a60423c59 (patch)
tree6a794f61b841372092594628ad47fbbec2f83c6a /src/libffmpeg/libavcodec/mpegvideo.c
parent053c81d90f8b525a1cca58e12cf95f960e56b629 (diff)
downloadxine-lib-bd97e328c4370eb7d49bf1450d33099a60423c59.tar.gz
xine-lib-bd97e328c4370eb7d49bf1450d33099a60423c59.tar.bz2
oops ... moving those #ifdef's to a more sensible position
CVS patchset: 4935 CVS date: 2003/05/25 18:53:38
Diffstat (limited to 'src/libffmpeg/libavcodec/mpegvideo.c')
-rw-r--r--src/libffmpeg/libavcodec/mpegvideo.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libffmpeg/libavcodec/mpegvideo.c b/src/libffmpeg/libavcodec/mpegvideo.c
index d2f3c8e90..46d29c8db 100644
--- a/src/libffmpeg/libavcodec/mpegvideo.c
+++ b/src/libffmpeg/libavcodec/mpegvideo.c
@@ -1439,8 +1439,8 @@ int MPV_encode_picture(AVCodecContext *avctx,
if (s->out_format == FMT_MJPEG)
mjpeg_picture_trailer(s);
- if(s->flags&CODEC_FLAG_PASS1)
#ifdef CONFIG_ENCODERS_FULL
+ if(s->flags&CODEC_FLAG_PASS1)
ff_write_pass1_stats(s);
#endif
@@ -3091,17 +3091,15 @@ static void encode_picture(MpegEncContext *s, int picture_number)
//printf("Scene change detected, encoding as I Frame %d %d\n", s->current_picture.mb_var_sum, s->current_picture.mc_mb_var_sum);
}
+#ifdef CONFIG_ENCODERS_FULL
if(!s->umvplus){
if(s->pict_type==P_TYPE || s->pict_type==S_TYPE) {
-#ifdef CONFIG_ENCODERS_FULL
s->f_code= ff_get_best_fcode(s, s->p_mv_table, MB_TYPE_INTER);
ff_fix_long_p_mvs(s);
-#endif
}
if(s->pict_type==B_TYPE){
-#ifdef CONFIG_ENCODERS_FULL
int a, b;
a = ff_get_best_fcode(s, s->b_forw_mv_table, MB_TYPE_FORWARD);
@@ -3116,9 +3114,9 @@ static void encode_picture(MpegEncContext *s, int picture_number)
ff_fix_long_b_mvs(s, s->b_back_mv_table, s->b_code, MB_TYPE_BACKWARD);
ff_fix_long_b_mvs(s, s->b_bidir_forw_mv_table, s->f_code, MB_TYPE_BIDIR);
ff_fix_long_b_mvs(s, s->b_bidir_back_mv_table, s->b_code, MB_TYPE_BIDIR);
-#endif
}
}
+#endif
if (s->fixed_qscale)
s->frame_qscale = s->current_picture.quality;