[FFmpeg-devel] patch for libdc1394.c

Alessandro Sappia a.sappia
Sun Jan 6 00:54:59 CET 2008


M?ns Rullg?rd ha scritto:
> Alessandro Sappia <a.sappia at ngi.it> writes:
>
>   
>> M?ns Rullg?rd ha scritto:
>>     
>>> Please resend without random whitespace changes.  This is impossible
>>> to review properly.
>>>
>>>   
>>>       
>> Sorry, I got it late ^^
>>
>> attached the new configure patch,
>> I think the other is fine.
>>
>> Index: configure
>> ===================================================================
>> --- configure	(revisione 11430)
>> +++ configure	(copia locale)
>> @@ -1633,7 +1633,6 @@
>>  enabled liba52     && require  liba52 a52dec/a52.h a52_init -la52
>>  enabled libamr_nb  && require  libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm
>>  enabled libamr_wb  && require  libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm
>> -enabled libdc1394  && require  libdc1394 libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394
>>  enabled libfaac    && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac
>>  enabled libfaad    && require2 libfaad faad.h faacDecOpen -lfaad
>>  enabled libgsm     && require  libgsm gsm.h gsm_create -lgsm
>> @@ -1648,6 +1647,24 @@
>>  # disable the native AC-3 decoder if liba52 is enabled
>>  enabled liba52 && disable ac3_decoder
>>  
>> +# if libdc1394 is enabled, check for both
>> +# - libdc1394 version 1
>> +# - libdc1394 version 2
>> +# and prefer the second one if present
>> +if enabled libdc1394; then
>> +    check_lib dc1394/dc1394.h dc1394_new -ldc1394 -lraw1394 && enable libdc1394_2
>> +else
>> +    check_lib libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394 && enable libdc1394_1
>> +fi
>> +# die if libdc1934 is enabled but none version of libdc1394 is found
>> +{ disabled libdc1394; } ||
>> +{ enabled libdc1394 &&
>> +  enabled libdc1394_1; } ||
>> +{ enabled libdc1394 && 
>> +  enabled libdc1394_2; } ||
>> +die "ERROR: No version of libdc1394 found "
>> +
>> +
>>  _restrict=
>>  for restrict_keyword in restrict __restrict__ __restrict; do
>>      check_cc <<EOF && _restrict=$restrict_keyword && break
>>     
>
> This doesn't make any sense.  Perhaps it's still late.
>
>   

:-P
well, I wrote that way to be clear, this patch includes a smarter way
to do that check

it's never too late :)

alessandro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure-libdc1394_1_or_2.patch
Type: text/x-patch
Size: 1307 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080106/b5193b1b/attachment.bin>



More information about the ffmpeg-devel mailing list