Skip to content

Commit

Permalink
fix api call error
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Mar 16, 2024
1 parent 1e0f356 commit 544f27c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions toxav/codecs/h264/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1951,11 +1951,7 @@ VCSession *vc_new_h265(Logger *log, ToxAV *av, uint32_t friend_number, toxav_vid
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");
// goto fail;
}

vc->h265_in_pic = x265_picture_alloc();
x265_picture_init(param, vc->h265_in_pic);

vc->h265_encoder = x265_encoder_open(param);
Expand Down

0 comments on commit 544f27c

Please sign in to comment.