Hi, On Thu, Jul 28, 2011 at 7:55 AM, Kostya Shishkov <[email protected]> wrote: > @@ -1608,6 +1620,8 @@ static int matroska_deliver_packet(MatroskaDemuxContext > *matroska, > matroska->packets = > av_realloc(matroska->packets, (matroska->num_packets - 1) * > sizeof(AVPacket *)); > + if (!matroska->packets) > + return -1; > } else { > av_freep(&matroska->packets); > }
This loses the original pointer (memleak). Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
