summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-03-31 15:13:17 +0000
committerdynaflash <[email protected]>2010-03-31 15:13:17 +0000
commite73f60520aa23505d4d85a5d8ff4277eb04b5d43 (patch)
treefa726850a8f1fdbc52a307b62e61424f3465bd08 /libhb
parent27393c7bcbebe597413316c469a6883455d22938 (diff)
libhb: change the x264 header NAL array order from sei - sps - pps to sps - pps - sei as per x265 r1510
- Thanks golgol7777 for the patch! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3180 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/encx264.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index 2451692a9..566fc5504 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -342,12 +342,12 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
x264_encoder_headers( pv->x264, &nal, &nal_count );
/* Sequence Parameter Set */
- memcpy(w->config->h264.sps, nal[1].p_payload + 4, nal[1].i_payload - 4);
- w->config->h264.sps_length = nal[1].i_payload - 4;
+ memcpy(w->config->h264.sps, nal[0].p_payload + 4, nal[0].i_payload - 4);
+ w->config->h264.sps_length = nal[0].i_payload - 4;
/* Picture Parameter Set */
- memcpy(w->config->h264.pps, nal[2].p_payload + 4, nal[2].i_payload - 4);
- w->config->h264.pps_length = nal[2].i_payload - 4;
+ memcpy(w->config->h264.pps, nal[1].p_payload + 4, nal[1].i_payload - 4);
+ w->config->h264.pps_length = nal[1].i_payload - 4;
x264_picture_alloc( &pv->pic_in, X264_CSP_I420,
job->width, job->height );