Re: [linux-programming] Error saat compile source C dengan library ffmpeg

2011-10-10 Terurut Topik Rin Itoshiki
On 10/10/2011 10:48 AM, Johannes Sasongko wrote: SwsContext* ScalerCtx=sws_getContext(pCodecCtx-width, pCodecCtx-height, pCodecCtx-pix_fmt, pCodecCtx-width*0.75, pCodecCtx-height*0.75, PIX_FMT_RGB24, SWS_BILINEAR, 0, 0, 0); Itu seharusnya `struct SwsContext`, bukan `SwsContext`. Ooh

Re: [linux-programming] Error saat compile source C dengan library ffmpeg

2011-10-10 Terurut Topik Donny Kurnia
On 10 Okt 2011, at 13:03, Rin Itoshiki zetsuri...@gmail.com wrote: On 10/10/2011 10:48 AM, Johannes Sasongko wrote: SwsContext* ScalerCtx=sws_getContext(pCodecCtx-width, pCodecCtx-height, pCodecCtx-pix_fmt, pCodecCtx-width*0.75, pCodecCtx-height*0.75, PIX_FMT_RGB24, SWS_BILINEAR, 0, 0, 0);

Re: [linux-programming] Error saat compile source C dengan library ffmpeg

2011-10-10 Terurut Topik Iwan Budi Kusnanto
2011/10/10 Rin Itoshiki zetsuri...@gmail.com: Ternyata letak masalahnya karena kebiasaan saya memakai typedef struct, biasanya variable bisa di-declare tanpa perlu menulis 'struct' di depan tipenya. FYI http://www.kernel.org/doc/Documentation/CodingStyle Lihat chapter 5 tentang 'typedef'

Re: [linux-programming] Error saat compile source C dengan library ffmpeg

2011-10-09 Terurut Topik Donny Kurnia
2011/10/9 Rin Itoshiki zetsuri...@gmail.com: Hello all, Maaf sebelumnya, pertanyaan ini pernah saya post di milis tanya jawab linux tapi disarankan untuk ditanyakan di milis ini saja. Saya dapat masalah waktu compile source C dengan library eksternal, coba tutorial penggunaan library ffmpeg

Re: [linux-programming] Error saat compile source C dengan library ffmpeg

2011-10-09 Terurut Topik Rin Itoshiki
On 10/10/2011 06:51 AM, Donny Kurnia wrote: 2011/10/9 Rin Itoshikizetsuri...@gmail.com: Hello all, ... # gcc -o tesframe -lavutil -lavcodec -lswscale -lavformat -lm frame.c frame.c: In function ‘main’: ... frame.c:67:2: error: unknown type name ‘SwsContext’ ... Source code frame.c

Re: [linux-programming] Error saat compile source C dengan library ffmpeg

2011-10-09 Terurut Topik Johannes Sasongko
SwsContext* ScalerCtx=sws_getContext(pCodecCtx-width, pCodecCtx-height, pCodecCtx-pix_fmt, pCodecCtx-width*0.75, pCodecCtx-height*0.75, PIX_FMT_RGB24, SWS_BILINEAR, 0, 0, 0); Itu seharusnya `struct SwsContext`, bukan `SwsContext`. -- Johannes -- Berhenti langganan: