git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2e2456
)
avcodec/gdv: Optimize unscaled loop
author
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 4 Jan 2019 19:22:34 +0000
(20:22 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 5 Jan 2019 21:36:12 +0000
(22:36 +0100)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/gdv.c
patch
|
blob
|
history
diff --git
a/libavcodec/gdv.c
b/libavcodec/gdv.c
index
538bc38
..
132ec72
100644
(file)
--- a/
libavcodec/gdv.c
+++ b/
libavcodec/gdv.c
@@
-470,12
+470,10
@@
static int gdv_decode_frame(AVCodecContext *avctx, void *data,
if (!gdv->scale_v && !gdv->scale_h) {
int sidx = PREAMBLE_SIZE, didx = 0;
- int y
, x
;
+ int y;
for (y = 0; y < avctx->height; y++) {
- for (x = 0; x < avctx->width; x++) {
- dst[x+didx] = gdv->frame[x+sidx];
- }
+ memcpy(dst + didx, gdv->frame + sidx, avctx->width);
sidx += avctx->width;
didx += frame->linesize[0];
}