]> granicus.if.org Git - handbrake/commitdiff
VCE: Fix an issue with where the h264 stream was not correctly written to the contain...
authorsr55 <sr55.hb@outlook.com>
Fri, 7 Dec 2018 23:36:19 +0000 (23:36 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 7 Dec 2018 23:36:54 +0000 (23:36 +0000)
libhb/encavcodec.c

index 49c6ea570937d85e46985aeba370d84b33b22770..cf740409bafd97dc4c9b0f03dcef5202c11ea82c 100644 (file)
@@ -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;