changeset 189:42552c1cf360 libavcodec

fix different UMV handling for mpeg4 vs. h263 - patch by Michael Niedermayer <michaelni@gmx.at>
author uid46427
date Thu, 10 Jan 2002 00:46:40 +0000
parents 5d56c2f7e712
children 9e0e56869d05
files mpegvideo.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Thu Jan 10 00:41:53 2002 +0000
+++ b/mpegvideo.c	Thu Jan 10 00:46:40 2002 +0000
@@ -403,15 +403,16 @@
 {
     /* draw edge for correct motion prediction if outside */
     if (s->pict_type != B_TYPE) {
-#if 1
+      if(s->avctx->codec->id!=CODEC_ID_MPEG4){
         draw_edges(s->current_picture[0], s->linesize, s->mb_width*16, s->mb_height*16, EDGE_WIDTH);
         draw_edges(s->current_picture[1], s->linesize/2, s->mb_width*8, s->mb_height*8, EDGE_WIDTH/2);
         draw_edges(s->current_picture[2], s->linesize/2, s->mb_width*8, s->mb_height*8, EDGE_WIDTH/2);
-#else
+      }else{
+        /* OpenDivx, but i dunno how to distinguish it from mpeg4 */
         draw_edges(s->current_picture[0], s->linesize, s->width, s->height, EDGE_WIDTH);
         draw_edges(s->current_picture[1], s->linesize/2, s->width/2, s->height/2, EDGE_WIDTH/2);
         draw_edges(s->current_picture[2], s->linesize/2, s->width/2, s->height/2, EDGE_WIDTH/2);
-#endif
+      }
     }
 }