X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fav1_encoder.cpp;h=13f0e30e3e9162fd5689883290d448205ae07e22;hb=HEAD;hp=d29b467c48cf512562ec7213d59dec0ca72d75cd;hpb=ecbf6f98414cc2aab099ef1cde1f66524fa3c0b1;p=nageru diff --git a/nageru/av1_encoder.cpp b/nageru/av1_encoder.cpp index d29b467..bb6c17b 100644 --- a/nageru/av1_encoder.cpp +++ b/nageru/av1_encoder.cpp @@ -212,7 +212,7 @@ void AV1Encoder::init_av1() global_headers = string(reinterpret_cast(header->p_buffer), header->n_filled_len); svt_av1_enc_stream_header_release(header); // Don't care about errors. - } + } } void AV1Encoder::encoder_thread_func() @@ -309,7 +309,7 @@ void AV1Encoder::encode_frame(AV1Encoder::QueuedFrame qf) hdr.n_alloc_len = (global_flags.width * global_flags.height * 3 / 2) * bytes_per_pixel; hdr.n_filled_len = hdr.n_alloc_len; hdr.n_tick_count = 0; - hdr.p_app_private = reinterpret_cast(intptr_t(qf.duration)); + hdr.p_app_private = nullptr; hdr.pic_type = EB_AV1_INVALID_PICTURE; // Actually means auto, according to FFmpeg. hdr.metadata = nullptr; hdr.flags = 0;