avoid copying input when encoding non intra stuff too
Originally committed as revision 288 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b935781b41
commit
0b2540a0c1
@ -470,17 +470,17 @@ int MPV_encode_picture(AVCodecContext *avctx,
|
|||||||
h >>= 1;
|
h >>= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(s->intra_only && dest_wrap==src_wrap){
|
if(dest_wrap==src_wrap){
|
||||||
s->current_picture[i] = pict->data[i];
|
s->new_picture[i] = pict->data[i];
|
||||||
}else {
|
}else {
|
||||||
for(j=0;j<h;j++) {
|
for(j=0;j<h;j++) {
|
||||||
memcpy(dest, src, w);
|
memcpy(dest, src, w);
|
||||||
dest += dest_wrap;
|
dest += dest_wrap;
|
||||||
src += src_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);
|
encode_picture(s, s->picture_number);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user