Skip to content

Commit

Permalink
obs-ffmpeg: Fix comparison type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jpark37 authored and jp9000 committed Jul 6, 2021
1 parent b94fbac commit 880eac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/obs-ffmpeg/jim-nvenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings,
static bool init_bitstreams(struct nvenc_data *enc)
{
da_reserve(enc->bitstreams, enc->buf_count);
for (size_t i = 0; i < enc->buf_count; i++) {
for (int i = 0; i < enc->buf_count; i++) {
struct nv_bitstream bitstream;
if (!nv_bitstream_init(enc, &bitstream)) {
return false;
Expand All @@ -612,7 +612,7 @@ static bool init_bitstreams(struct nvenc_data *enc)
static bool init_textures(struct nvenc_data *enc)
{
da_reserve(enc->bitstreams, enc->buf_count);
for (size_t i = 0; i < enc->buf_count; i++) {
for (int i = 0; i < enc->buf_count; i++) {
struct nv_texture texture;
if (!nv_texture_init(enc, &texture)) {
return false;
Expand Down

0 comments on commit 880eac5

Please sign in to comment.