projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b870253
)
matroskadec: use av_freep(&x) instead of av_free(x);x=NULL
author
Aurelien Jacobs
<aurel@gnuage.org>
Wed, 6 Aug 2008 00:21:10 +0000
(
00:21
+0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Wed, 6 Aug 2008 00:21:10 +0000
(
00:21
+0000)
Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskadec.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskadec.c
b/libavformat/matroskadec.c
index
23fea47
..
d7a1e39
100644
(file)
--- 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;
}
}