From: | "Alexis Ballier (aballier)" <aballier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-video/cinelerra/files: cinelerra-x264.patch |
Date: | Mon, 26 Oct 2009 13:30:55 |
Message-Id: | E1N2Pev-0001tm-Ej@stork.gentoo.org |
1 | aballier 09/10/26 13:30:53 |
2 | |
3 | Added: cinelerra-x264.patch |
4 | Log: |
5 | add a patch to fix exporting in h264 with latest x264 |
6 | (Portage version: 2.2_rc46/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-video/cinelerra/files/cinelerra-x264.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinelerra/files/cinelerra-x264.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinelerra/files/cinelerra-x264.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: cinelerra-x264.patch |
15 | =================================================================== |
16 | Index: cinelerra-20090210/quicktime/qth264.c |
17 | =================================================================== |
18 | --- cinelerra-20090210.orig/quicktime/qth264.c |
19 | +++ cinelerra-20090210/quicktime/qth264.c |
20 | @@ -239,10 +239,15 @@ static int encode(quicktime_t *file, uns |
21 | codec->buffer_size = 0; |
22 | for(i = 0; i < nnal; i++) |
23 | { |
24 | +#if X264_BUILD >= 76 |
25 | + int size = nals[i].i_payload; |
26 | + memcpy(codec->work_buffer + codec->buffer_size, nals[i].p_payload, nals[i].i_payload); |
27 | +#else |
28 | int size = x264_nal_encode(codec->work_buffer + codec->buffer_size, |
29 | &allocation, |
30 | 1, |
31 | nals + i); |
32 | +#endif |
33 | unsigned char *ptr = codec->work_buffer + codec->buffer_size; |
34 | |
35 | if(size > 0) |