Commit 07d767be authored by michaelni's avatar michaelni

avoid copying input when encoding non intra stuff too


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@288 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent afd60d52
......@@ -470,17 +470,17 @@ 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];
}
}
encode_picture(s, s->picture_number);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment