This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"time" | |
) | |
const ( | |
Success = "Success" | |
Copy = "Copy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c | |
index a3a2ef5..1691d15 100644 | |
--- a/libavcodec/nvenc.c | |
+++ b/libavcodec/nvenc.c | |
@@ -1157,7 +1157,7 @@ static av_cold int nvenc_setup_surfaces(AVCodecContext *avctx) | |
NvencContext *ctx = avctx->priv_data; | |
int i, res; | |
int num_mbs = ((avctx->width + 15) >> 4) * ((avctx->height + 15) >> 4); | |
- ctx->nb_surfaces = FFMAX((num_mbs >= 8160) ? 32 : 48, | |
+ ctx->nb_surfaces = FFMAX((num_mbs >= 8160) ? 8 : 12, |