[FFmpeg-devel] [PATCH] use NULL instead of av_destruct_packet_nofree
Sat Apr 11 14:33:11 CEST 2009
On Sat, Apr 11, 2009 at 11:09:01AM +0200, Reimar D?ffinger wrote:
> this should resolve issues caused by non-working function pointer
> comparisons on MinGW.
> The checks still stay there to maintain API/ABI compatibility.
> There is still a ABI issue, since binaries compiled against older
> header versions but using newer libs will not set pkt->data or
> pkt->size to 0 anymore during destruct for the default "nofree"
> There is still a pkt->destruct == av_destruct_packet in
> libavformat/utils.c, but I think this will only lead to worse
> performance and thus can be ignored (though I still think
> it is an ugly optimization hack, it may well be possible to
> share packets with pkt->destruct != av_destruct_packet
> without fully duplicating them).
> In addition I am also a bit irritated as to why libavformat/utils.c
> set pkt->duration and pkt->destruct, those should have been set
> like this already during init_packet.
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel