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:
3f9fea7
)
simplify free()+set to NULL using av_freep()
author
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 20 Nov 2006 00:04:08 +0000
(
00:04
+0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 20 Nov 2006 00:04:08 +0000
(
00:04
+0000)
Originally committed as revision 7127 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroska.c
patch
|
blob
|
history
diff --git
a/libavformat/matroska.c
b/libavformat/matroska.c
index
7eca05b
..
0f71b28
100644
(file)
--- a/
libavformat/matroska.c
+++ b/
libavformat/matroska.c
@@
-988,8
+988,7
@@
matroska_deliver_packet (MatroskaDemuxContext *matroska,
av_realloc(matroska->packets, (matroska->num_packets - 1) *
sizeof(AVPacket *));
} else {
- av_free(matroska->packets);
- matroska->packets = NULL;
+ av_freep(&matroska->packets);
}
matroska->num_packets--;
return 0;