[FFmpeg-cvslog] avcodec/cuvid: don't align frame size

Timo Rothenpieler git at videolan.org
Tue Oct 4 14:06:31 EEST 2016


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Tue Oct  4 12:58:42 2016 +0200| [5d4fea88d485ec6e81db85ff3e0c6e1ab01d3436] | committer: Timo Rothenpieler

avcodec/cuvid: don't align frame size

hwcontext_cuda was changed to take care of proper alignment internally

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d4fea88d485ec6e81db85ff3e0c6e1ab01d3436
---

 libavcodec/cuvid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/cuvid.c b/libavcodec/cuvid.c
index e9a1dd7..56f349c 100644
--- a/libavcodec/cuvid.c
+++ b/libavcodec/cuvid.c
@@ -204,8 +204,8 @@ static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* form
     if (!hwframe_ctx->pool) {
         hwframe_ctx->format = AV_PIX_FMT_CUDA;
         hwframe_ctx->sw_format = AV_PIX_FMT_NV12;
-        hwframe_ctx->width = FFALIGN(avctx->width, 32);
-        hwframe_ctx->height = FFALIGN(avctx->height, 32);
+        hwframe_ctx->width = avctx->width;
+        hwframe_ctx->height = avctx->height;
 
         if ((ctx->internal_error = av_hwframe_ctx_init(ctx->hwframe)) < 0) {
             av_log(avctx, AV_LOG_ERROR, "av_hwframe_ctx_init failed\n");



More information about the ffmpeg-cvslog mailing list