| | 8 | |
| | 9 | Alternatively, keeping the padding and setting the input picture width/height to padded input surface dimensions rather than original frame dims in ''ff_nvenc_encode_frame'' seems to work as well: |
| | 10 | {{{ |
| | 11 | @@ -1737,8 +1790,8 @@ int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, |
| | 12 | |
| | 13 | pic_params.inputBuffer = inSurf->input_surface; |
| | 14 | pic_params.bufferFmt = inSurf->format; |
| | 15 | - pic_params.inputWidth = avctx->width; |
| | 16 | - pic_params.inputHeight = avctx->height; |
| | 17 | + pic_params.inputWidth = inSurf->width; |
| | 18 | + pic_params.inputHeight = inSurf->height; |
| | 19 | pic_params.inputPitch = inSurf->pitch; |
| | 20 | pic_params.outputBitstream = inSurf->output_surface; |
| | 21 | }}} |