[FFmpeg-devel] Possible bug in av_dup_packet()?
Fri Jan 9 16:27:11 CET 2009
On Fri, Jan 09, 2009 at 03:23:05PM +0100, Luca Abeni wrote:
> while working on different issues (support for v4l2 compressed
> devices), I noticed a strange behaviour in av_dup_packet():
> it seems to me that this function assumes that if
> pkt->destruct != av_destruct_packet then it is not necessary
> to call the destruct method (in fact, in this case the value
> of pkt->destruct is overwritten).
> I noticed this problem because v4l2.c sets destruct to a
> different method (used to release the v4l buffer), and this
> method is not called if av_dup_packet() is used.
> The attached patch fixes the issue for me, but I do not know
> if I am missing something...
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I have often repented speaking, but never of holding my tongue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel