[FFmpeg-devel] patch for libdc1394.c

Alessandro Sappia a.sappia
Sun Jan 6 01:58:31 CET 2008


M?ns Rullg?rd ha scritto:
> Alessandro Sappia <a.sappia at ngi.it> writes:
>
>   
>> 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.
>>>>         
>
> [...]
>
>   
>>> 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
>> 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,14 @@
>>  # disable the native AC-3 decoder if liba52 is enabled
>>  enabled liba52 && disable ac3_decoder
>>  
>> +# libdc1394 check
>> +if enabled libdc1394; then
>> +    { check_lib dc1394/dc1394.h dc1394_new -ldc1394 -lraw1394 && enable libdc1394_2; } ||
>> +    { check_lib libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394 && enable libdc1394_1; } ||
>> +    die "ERROR: No version of libdc1394 found "
>> +fi
>> +
>>     
>
> This makes more sense (and doesn't do at all the same thing as the
> last version), but it's still incomplete.  You need to add
> libdc1394_1/2 to HAVE_LIST or those symbols will not be #defined.
>
>   
you're right ^^, I miss it because in the libdc1394.c I used #ifndef and
not #ifdef

here you are :-P

Alessandro

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



More information about the ffmpeg-devel mailing list