mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
lavc/nvenc: misc cosmetics to reduce diff with Libav
This commit is contained in:
parent
e849296d0a
commit
b7cc4eb303
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user