# HG changeset patch # User michael # Date 1231361063 0 # Node ID fdadd576d5841e856f52fd46f9c47956f022dc00 # Parent 6af3e7ab7cbbb83bd0d5f199ad0ebe188232a794 Do not try to duplicate packets that have data==NULL. diff -r 6af3e7ab7cbb -r fdadd576d584 utils.c --- a/utils.c Wed Jan 07 16:01:15 2009 +0000 +++ b/utils.c Wed Jan 07 20:44:23 2009 +0000 @@ -295,7 +295,7 @@ 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)