diff --git a/src/crypto-nettle.c b/src/crypto-nettle.c index 5f1b0ef..04efc8d 100644 --- a/src/crypto-nettle.c +++ b/src/crypto-nettle.c @@ -658,7 +658,7 @@ bool crypto_rsa_priv_key_load(struct crypto_rsa_priv_key* priv, void crypto_rsa_pub_key_modulus(const struct crypto_rsa_pub_key* key, uint8_t* dst, size_t dst_size) { - crypto_export(dst, dst_size, key->key.n); + crypto_export(dst, dst_size, key->key.n); } void crypto_rsa_pub_key_exponent(const struct crypto_rsa_pub_key* key, diff --git a/src/fb_pool.c b/src/fb_pool.c index c6da056..a4d8ad1 100644 --- a/src/fb_pool.c +++ b/src/fb_pool.c @@ -165,7 +165,7 @@ void nvnc_fb_pool_release(struct nvnc_fb_pool* self, struct nvnc_fb* fb) } nvnc_fb_ref(fb); - + struct fbq_item* item = calloc(1, sizeof(*item)); assert(item); item->fb = fb; diff --git a/src/h264-encoder.c b/src/h264-encoder.c index 50685d9..4cb3aff 100644 --- a/src/h264-encoder.c +++ b/src/h264-encoder.c @@ -328,7 +328,7 @@ static int h264_encoder__init_hw_frames_context(struct h264_encoder* self) c->sw_format = drm_to_av_pixel_format(self->format); c->width = self->width; c->height = self->height; - + if (av_hwframe_ctx_init(self->hw_frames_ctx) < 0) av_buffer_unref(&self->hw_frames_ctx);