summaryrefslogtreecommitdiff
path: root/multimedia/cinelerra/x264_76.patch
blob: 018b964e12d92eae27c2cd2492bab607e358753a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: cinelerra-20090210/quicktime/qth264.c
===================================================================
--- cinelerra-20090210.orig/quicktime/qth264.c
+++ cinelerra-20090210/quicktime/qth264.c
@@ -239,10 +239,15 @@ static int encode(quicktime_t *file, uns
 	codec->buffer_size = 0;
 	for(i = 0; i < nnal; i++)
 	{
+#if X264_BUILD >= 76
+		int size = nals[i].i_payload;
+		memcpy(codec->work_buffer + codec->buffer_size, nals[i].p_payload, nals[i].i_payload);
+#else
 		int size = x264_nal_encode(codec->work_buffer + codec->buffer_size, 
 			&allocation, 
 			1, 
 			nals + i);
+#endif
 		unsigned char *ptr = codec->work_buffer + codec->buffer_size;
 
 		if(size > 0)