2009/12/31 Reimar D?ffinger <Reimar.Doeffinger at gmx.de>
On Thu, Dec 31, 2009 at 05:02:34PM +0530, Mohamed Naufal wrote:
2009/12/31 Reimar D?ffinger <Reimar.Doeffinger at gmx.de>
[...]
Add .flags = AVFMT_GENERIC_INDEX, to yop_demuxer, test seeking (e.g. with ffplay). It should only work reliable if you set pkt.pos to a file position from which your demuxer can start (i.e. the start of the palette data).
Done.
+ if (yop->video_packet.data) { + *pkt = yop->video_packet; + yop->video_packet.data = NULL; + yop->video_packet.size = 0;
I'm undecided if this is better or (mis?-)using destruct_nofree.
I thought av_destruct_packet_nofree() was deprecated. Changed back. [...]
And here you forgot the free. I was quite serious when is suggested to use "goto err_out" to handle the freeing in one single place, if you don't you _will_ have memleaks, I have seen it often enough.
Implemented goto. [...] Also fixed other issues. Naufal