Skip to content

Commit

Permalink
fix compiler warnings/errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Mar 16, 2024
1 parent e41fe16 commit 585753e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions toxav/codecs/h264/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1948,8 +1948,8 @@ VCSession *vc_new_h265(Logger *log, ToxAV *av, uint32_t friend_number, toxav_vid
param.i_width = 1920;
param.i_height = 1080;
*/
vc->h264_enc_width = param.i_width;
vc->h264_enc_height = param.i_height;
vc->h264_enc_width = 1920;
vc->h264_enc_height = 1080;

if (x265_picture_alloc(vc->h265_in_pic) < 0) {
LOGGER_API_WARNING(av->tox, "H265 encoder:x265_picture_alloc error");
Expand Down Expand Up @@ -2085,10 +2085,8 @@ void vc_kill_h265(VCSession *vc)
{
#ifdef HAVE_H265_ENCODER
// encoder
LOGGER_API_WARNING(av->tox, "H265 encoder:kill:h265_encoder=%p", vc->h265_encoder);
x265_encoder_close(vc->h265_encoder);
x265_picture_free(vc->h265_in_pic);
LOGGER_API_WARNING(av->tox, "H265 encoder:kill:done");
#endif

// decoder
Expand Down

0 comments on commit 585753e

Please sign in to comment.