summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-12-07 23:36:19 +0000
committersr55 <[email protected]>2018-12-07 23:36:54 +0000
commit5ed3665f950aa4370b5dcf039aff75236070f9b3 (patch)
tree93d9abfd0738293a67212b33cde546b1fd1956ac
parent677b88ebbf3cb736c9f02fc59e636e4944b084bd (diff)
VCE: Fix an issue with where the h264 stream was not correctly written to the container. #1706
-rw-r--r--libhb/encavcodec.c11
1 files 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;