1 Sep 2011 03:10
[PATCH] support FFmpeg-0.8 API
Dominik 'Rathann' Mierzejewski <dominik <at> greysector.net>
2011-09-01 01:10:55 GMT
2011-09-01 01:10:55 GMT
Hi all, I know kino is unmaintained, but nevertheless here's a patch if someone would like to build kino against current FFmpeg 0.8 branch. I haven't really tested it apart from compilation, but I hope it works. Regards, Dominik -- Fedora http://fedoraproject.org/wiki/User:Rathann RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu "Faith manages." -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
diff -up kino-1.3.4/src/frame.cc.ffmpeg kino-1.3.4/src/frame.cc --- kino-1.3.4/src/frame.cc.ffmpeg 2009-09-08 06:34:42.000000000 +0200 +++ kino-1.3.4/src/frame.cc 2011-09-01 01:46:16.000000000 +0200 <at> <at> -1063,7 +1063,15 <at> <at> int Frame::ExtractRGB( void * rgb ) AVPicture dest; int got_picture; +#if FF_API_VIDEO_OLD avcodec_decode_video( libavcodec, frame, &got_picture, data, GetFrameSize() ); +#else + AVPacket avpkt; + av_init_packet(&avpkt); + avpkt.data = data; + avpkt.size = GetFrameSize(); + avcodec_decode_video2( libavcodec, frame, &got_picture, &avpkt);(Continue reading)
RSS Feed