diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-02-07 23:48:24 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-02-07 23:48:24 +0000 |
commit | 0b2540a0c1236d7cfe72849ecec2d9408adb20b6 (patch) | |
tree | aee22cc88cfbaf0c5b89b7507c7e070b38cfbaa9 /libavcodec | |
parent | b935781b41ecd2a6db16085f268570e91861e112 (diff) | |
download | ffmpeg-0b2540a0c1236d7cfe72849ecec2d9408adb20b6.tar.gz |
avoid copying input when encoding non intra stuff too
Originally committed as revision 288 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 7937be4955..0d5695440d 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -470,16 +470,16 @@ int MPV_encode_picture(AVCodecContext *avctx, 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;j<h;j++) { memcpy(dest, src, w); dest += dest_wrap; src += src_wrap; } + s->new_picture[i] = s->current_picture[i]; } - s->new_picture[i] = s->current_picture[i]; } encode_picture(s, s->picture_number); |