2016-06-05 21:58 GMT+03:00 Timo Rothenpieler <t...@rothenpieler.org>:
> + > + avctx->width = format->coded_width; > + avctx->height = format->coded_height; > + > This patch seems to mix bitstream picture dimensions and output picture dimensions in several places. Can you test if the decoder works with input video of "strange" size (say, 325x243)? + hwframe_ctx->format = AV_PIX_FMT_CUDA; > + hwframe_ctx->sw_format = AV_PIX_FMT_NV12; > + hwframe_ctx->width = FFALIGN(cuinfo.ulTargetWidth, 16); > + hwframe_ctx->height = FFALIGN(cuinfo.ulTargetHeight, 16); > NVENC aligns to 32 (I think hevc requires this sometimes); maybe use same here? _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel