|
|
|
@ -883,7 +883,7 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx) |
|
|
|
|
hevc->outputPictureTimingSEI = 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch(ctx->profile) { |
|
|
|
|
switch (ctx->profile) { |
|
|
|
|
case NV_ENC_HEVC_PROFILE_MAIN: |
|
|
|
|
cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID; |
|
|
|
|
avctx->profile = FF_PROFILE_HEVC_MAIN; |
|
|
|
@ -1299,7 +1299,7 @@ static NvencSurface *get_free_frame(NvencContext *ctx) |
|
|
|
|
{ |
|
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
for (i = 0; i < ctx->nb_surfaces; ++i) { |
|
|
|
|
for (i = 0; i < ctx->nb_surfaces; i++) { |
|
|
|
|
if (!ctx->surfaces[i].lockCount) { |
|
|
|
|
ctx->surfaces[i].lockCount = 1; |
|
|
|
|
return &ctx->surfaces[i]; |
|
|
|
|