Message ID | 20190104192236.25585-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 2d580d727cf2f6e857a9e46fd2dcdee6473e7c3c |
Headers | show |
On 1/4/19, Michael Niedermayer <michael@niedermayer.cc> wrote: > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/gdv.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) OK
On Fri, Jan 04, 2019 at 08:29:05PM +0100, Paul B Mahol wrote: > On 1/4/19, Michael Niedermayer <michael@niedermayer.cc> wrote: > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > > --- > > libavcodec/gdv.c | 6 ++---- > > 1 file changed, 2 insertions(+), 4 deletions(-) > > > OK will apply thx [...]
diff --git a/libavcodec/gdv.c b/libavcodec/gdv.c index 538bc38e3e..132ec7288a 100644 --- 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]; }
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/gdv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)