aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-08-06 00:21:10 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-08-06 00:21:10 +0000
commit00a3431cbb27ace9120a07605e79c1d0d4c13d42 (patch)
tree75f5fb838571089509be40f84dd19b61e888e362
parentb87025399c0aa3e3f17a6cf46d4fc751e799b6f1 (diff)
downloadffmpeg-00a3431cbb27ace9120a07605e79c1d0d4c13d42.tar.gz
matroskadec: use av_freep(&x) instead of av_free(x);x=NULL
Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/matroskadec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 23fea470dc..d7a1e39846 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -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;
}
}