1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

matroskadec: use av_freep(&x) instead of av_free(x);x=NULL

Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2008-08-06 00:21:10 +00:00
parent b87025399c
commit 00a3431cbb

View File

@ -1304,8 +1304,7 @@ static void matroska_clear_queue(MatroskaDemuxContext *matroska)
av_free_packet(matroska->packets[n]);
av_free(matroska->packets[n]);
}
av_free(matroska->packets);
matroska->packets = NULL;
av_freep(&matroska->packets);
matroska->num_packets = 0;
}
}