From 5ed3665f950aa4370b5dcf039aff75236070f9b3 Mon Sep 17 00:00:00 2001
From: sr55 <sr55.hb@outlook.com>
Date: Fri, 7 Dec 2018 23:36:19 +0000
Subject: [PATCH] VCE: Fix an issue with where the h264 stream was not
 correctly written to the container. #1706

---
 libhb/encavcodec.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

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;
-- 
2.40.0