[FFmpeg-cvslog] r16506 - trunk/libavformat/utils.c

lucabe subversion
Fri Jan 9 21:10:13 CET 2009


Author: lucabe
Date: Fri Jan  9 21:10:13 2009
New Revision: 16506

Log:
Do not assume that if pkt->destruct != av_destruct_packet then it is not
necessary to call the destruct method

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Fri Jan  9 21:03:53 2009	(r16505)
+++ trunk/libavformat/utils.c	Fri Jan  9 21:10:13 2009	(r16506)
@@ -295,7 +295,7 @@ int av_get_packet(ByteIOContext *s, AVPa
 
 int av_dup_packet(AVPacket *pkt)
 {
-    if (pkt->destruct != av_destruct_packet && pkt->data) {
+    if (((pkt->destruct == av_destruct_packet_nofree) || (pkt->destruct == NULL)) && pkt->data) {
         uint8_t *data;
         /* We duplicate the packet and don't forget to add the padding again. */
         if((unsigned)pkt->size > (unsigned)pkt->size + FF_INPUT_BUFFER_PADDING_SIZE)




More information about the ffmpeg-cvslog mailing list