Skip to content

Commit

Permalink
obs-qsv11: Don't declare vars in switch w/o braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jp9000 committed Nov 22, 2022
1 parent 8456500 commit 37a8835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/obs-qsv11/obs-qsv11.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,14 +801,15 @@ static void *obs_qsv_create(enum qsv_codec codec, obs_data_t *settings,
default:
switch (voi->colorspace) {
case VIDEO_CS_2100_PQ:
case VIDEO_CS_2100_HLG:
case VIDEO_CS_2100_HLG: {
const char *const text =
obs_module_text("8bitUnsupportedHdr");
obs_encoder_set_last_error(encoder, text);
error("%s", text);
bfree(obsqsv);
return NULL;
}
}
}

if (update_settings(obsqsv, settings)) {
Expand Down

0 comments on commit 37a8835

Please sign in to comment.