avcodec/nvenc: use frame size instead of surface size

pull/232/head
Timo Rothenpieler 8 years ago
parent 347cb14b7c
commit 8ebe1dddfb
  1. 2
      libavcodec/nvenc.c

@ -1311,7 +1311,7 @@ static int nvenc_copy_frame(AVCodecContext *avctx, NvencSurface *nv_surface,
av_image_copy(dst_data, dst_linesize,
(const uint8_t**)frame->data, frame->linesize, frame->format,
nv_surface->width, nv_surface->height);
avctx->width, avctx->height);
return 0;
}

Loading…
Cancel
Save