mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/gdv: Replace loop in gdv_decode_frame() by memcpy()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5f84fbce08
commit
6a4788e7b3
|
@ -479,9 +479,7 @@ static int gdv_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
|
|
||||||
for (y = 0; y < avctx->height; y++) {
|
for (y = 0; y < avctx->height; y++) {
|
||||||
if (!gdv->scale_v) {
|
if (!gdv->scale_v) {
|
||||||
for (x = 0; x < avctx->width; x++) {
|
memcpy(dst + didx, gdv->frame + sidx, avctx->width);
|
||||||
dst[didx + x] = gdv->frame[sidx + x];
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
for (x = 0; x < avctx->width; x++) {
|
for (x = 0; x < avctx->width; x++) {
|
||||||
dst[didx + x] = gdv->frame[sidx + x/2];
|
dst[didx + x] = gdv->frame[sidx + x/2];
|
||||||
|
|
Loading…
Reference in New Issue