Commit b7cc4eb3 authored by Clément Bœsch's avatar Clément Bœsch

lavc/nvenc: misc cosmetics to reduce diff with Libav

parent e849296d
...@@ -883,7 +883,7 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx) ...@@ -883,7 +883,7 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
hevc->outputPictureTimingSEI = 1; hevc->outputPictureTimingSEI = 1;
} }
switch(ctx->profile) { switch (ctx->profile) {
case NV_ENC_HEVC_PROFILE_MAIN: case NV_ENC_HEVC_PROFILE_MAIN:
cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID; cc->profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID;
avctx->profile = FF_PROFILE_HEVC_MAIN; avctx->profile = FF_PROFILE_HEVC_MAIN;
...@@ -1299,7 +1299,7 @@ static NvencSurface *get_free_frame(NvencContext *ctx) ...@@ -1299,7 +1299,7 @@ static NvencSurface *get_free_frame(NvencContext *ctx)
{ {
int i; int i;
for (i = 0; i < ctx->nb_surfaces; ++i) { for (i = 0; i < ctx->nb_surfaces; i++) {
if (!ctx->surfaces[i].lockCount) { if (!ctx->surfaces[i].lockCount) {
ctx->surfaces[i].lockCount = 1; ctx->surfaces[i].lockCount = 1;
return &ctx->surfaces[i]; return &ctx->surfaces[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment