changeset 275:7ebb3f9aaf3b libavcodec

- Added video coding statistics for ffmpeg. Needs more work. - Fixed ME range for H.263+ UMV (32 pix).
author pulento
date Tue, 19 Mar 2002 06:30:41 +0000
parents d0c186bcf075
children 1e2f9ef286d4
files motion_est.c mpeg12.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/motion_est.c	Tue Mar 19 03:51:36 2002 +0000
+++ b/motion_est.c	Tue Mar 19 06:30:41 2002 +0000
@@ -409,6 +409,8 @@
     if (s->unrestricted_mv) {
         xmin = -16;
         ymin = -16;
+        if (s->h263_plus)
+            range *= 2;
         if(s->avctx==NULL || s->avctx->codec->id!=CODEC_ID_MPEG4){
             xmax = s->mb_width*16;
             ymax = s->mb_height*16;
--- a/mpeg12.c	Tue Mar 19 03:51:36 2002 +0000
+++ b/mpeg12.c	Tue Mar 19 06:30:41 2002 +0000
@@ -1536,7 +1536,7 @@
         s->repeat_field++;
         //fprintf(stderr,"\nRepeating last frame: %d -> %d! pict: %d %d", avctx->frame_number-1, avctx->frame_number,
         //                                                         s2->picture_number, s->repeat_field);
-        *data_size = 1;
+        *data_size = sizeof(AVPicture);
         goto the_end;
     }