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

michael subversion
Wed Jan 7 21:44:24 CET 2009


Author: michael
Date: Wed Jan  7 21:44:23 2009
New Revision: 16483

Log:
Do not try to duplicate packets that have data==NULL.

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Wed Jan  7 20:55:08 2009	(r16482)
+++ trunk/libavformat/utils.c	Wed Jan  7 21:44:23 2009	(r16483)
@@ -295,7 +295,7 @@ int av_get_packet(ByteIOContext *s, AVPa
 
 int av_dup_packet(AVPacket *pkt)
 {
-    if (pkt->destruct != av_destruct_packet) {
+    if (pkt->destruct != av_destruct_packet && 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