# HG changeset patch # User michaelni # Date 1013125704 0 # Node ID ec1bc02a0a4787f65b405d52e207d8234009094e # Parent 5784987c3940f0425ce931f710cdd6bbd6258e5a avoid copying input when encoding non intra stuff too diff -r 5784987c3940 -r ec1bc02a0a47 mpegvideo.c --- a/mpegvideo.c Thu Feb 07 02:08:36 2002 +0000 +++ b/mpegvideo.c Thu Feb 07 23:48:24 2002 +0000 @@ -470,16 +470,16 @@ h >>= 1; } - if(s->intra_only && dest_wrap==src_wrap){ - s->current_picture[i] = pict->data[i]; + if(dest_wrap==src_wrap){ + s->new_picture[i] = pict->data[i]; }else { for(j=0;jnew_picture[i] = s->current_picture[i]; } - s->new_picture[i] = s->current_picture[i]; } encode_picture(s, s->picture_number);