On Sun, May 15, 2011 at 11:03 AM, Simon A. Eugster <[email protected]> wrote:
> On 15.05.2011 19:21, Dan Dennedy wrote:
>>
>> On Sun, May 15, 2011 at 9:14 AM, Simon A. Eugster<[email protected]>
>> wrote:
>>>
>>> I'm using libav, is this maybe the reason for this compiler error?
>>> Would like to compile MLT in order to compile kdenlive 0.8 ;)
>>>
>>> make[2]: Entering directory `/data/cworkspace/mlt/src/modules/avformat'
>>> cc -I../.. -Wall -DPIC -O2 -pipe -fomit-frame-pointer -ffast-math
>>> -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64
>>> -D_LARGEFILE_SOURCE -DARCH_X86_64 -fPIC -pthread
>>> -DAVDATADIR=\"/usr/share/ffmpeg/\" -DFILTERS -DVDPAU `pkg-config
>>> --cflags x11` -DCODECS -DSWSCALE -DAVDEVICE -c -o producer_avformat.o
>>> producer_avformat.c
>>> producer_avformat.c: In function ‘reopen_video’:
>>> producer_avformat.c:812:65: error: ‘struct AVInputFormat’ has no member
>>> named ‘priv_class’
>>> producer_avformat.c: In function ‘producer_get_image’:
>>> producer_avformat.c:1083:59: warning: cast to pointer from integer of
>>> different size [-Wint-to-pointer-cast]
>>> producer_avformat.c:1488:37: warning: cast to pointer from integer of
>>> different size [-Wint-to-pointer-cast]
>>> producer_avformat.c: In function ‘producer_set_up_video’:
>>> producer_avformat.c:1771:45: error: ‘struct AVInputFormat’ has no member
>>> named ‘priv_class’
>>
>> Works for me using ffmpeg head. Let me know if the following patch
>> works or supply a better one.
>
> Now it compiles, but segfaults somewhere.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007fffe741af37 in QVariantAnimation::registerInterpolator(QVariant
> (*)(void const*, void const*, double), int) () from /usr/lib/libQtCore.so.4
> (gdb) bt
> #0 0x00007fffe741af37 in QVariantAnimation::registerInterpolator(QVariant
> (*)(void const*, void const*, double), int) ()
> from /usr/lib/libQtCore.so.4
> #1 0x00007fffe7a4b770 in ?? () from /usr/lib/libQtGui.so.4
> #2 0x00007ffff764f0d5 in __cxa_finalize (d=0x7fffe8521560) at
> cxa_finalize.c:56
> #3 0x00007fffe7a419d6 in ?? () from /usr/lib/libQtGui.so.4
> #4 0x00007fffffffdc50 in ?? ()
> #5 0x0000000000000007 in ?? ()
> #6 0x00007fffffffdef0 in ?? ()
> #7 0x00007fffe80c52f5 in _fini () from /usr/lib/libQtGui.so.4
> #8 0x00007fffffffdef0 in ?? ()
> #9 0x00007ffff7defb12 in _dl_close_worker (map=<value optimized out>) at
> dl-close.c:272
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
>
> gdb does not really help me here. Or is this backtrace worth something?
>
> Simon
>
Revert the previous patch and try this one.
diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c
index e1f88de..b88613b 100644
--- a/src/modules/avformat/producer_avformat.c
+++ b/src/modules/avformat/producer_avformat.c
@@ -808,10 +808,12 @@ void reopen_video( producer_avformat self, mlt_producer producer, mlt_properties
}
mlt_events_unblock( properties, producer );
apply_properties( self->video_format, properties, AV_OPT_FLAG_DECODING_PARAM );
+#if 0
#if LIBAVFORMAT_VERSION_MAJOR > 52
if ( self->video_format->iformat && self->video_format->iformat->priv_class && self->video_format->priv_data )
apply_properties( self->video_format->priv_data, properties, AV_OPT_FLAG_DECODING_PARAM );
#endif
+#endif
self->audio_index = audio_index;
if ( self->video_format && video_index > -1 )
@@ -1767,10 +1769,12 @@ static void producer_set_up_video( producer_avformat self, mlt_frame frame )
if ( context )
{
apply_properties( context, properties, AV_OPT_FLAG_DECODING_PARAM );
+#if 0
#if LIBAVFORMAT_VERSION_MAJOR > 52
if ( context->iformat && context->iformat->priv_class && context->priv_data )
apply_properties( context->priv_data, properties, AV_OPT_FLAG_DECODING_PARAM );
#endif
+#endif
}
}
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel