From: sr55 Date: Fri, 7 Dec 2018 23:36:19 +0000 (+0000) Subject: VCE: Fix an issue with where the h264 stream was not correctly written to the contain... X-Git-Tag: 1.2.0~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ed3665f950aa4370b5dcf039aff75236070f9b3;p=handbrake VCE: Fix an issue with where the h264 stream was not correctly written to the container. #1706 --- diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 49c6ea570..cf740409b 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -807,15 +807,8 @@ static void get_packets( hb_work_object_t * w, hb_buffer_list_t * list ) hb_log("encavcodec: avcodec_receive_packet failed"); } - if (job->vcodec == HB_VCODEC_FFMPEG_VCE_H264) - { - out = hb_nal_bitstream_annexb_to_mp4(pkt.data, pkt.size); - } - else - { - out = hb_buffer_init(pkt.size); - memcpy(out->data, pkt.data, out->size); - } + out = hb_buffer_init(pkt.size); + memcpy(out->data, pkt.data, out->size); int64_t frameno = pkt.pts; out->size = pkt.size;