git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5c50214
)
avcodec/avpacket: simplify freeing pkt->data
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 7 Oct 2014 01:40:15 +0000
(
03:40
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 7 Oct 2014 01:40:15 +0000
(
03:40
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/avpacket.c
patch
|
blob
|
history
diff --git
a/libavcodec/avpacket.c
b/libavcodec/avpacket.c
index
a87e8e3
..
9978712
100644
(file)
--- a/
libavcodec/avpacket.c
+++ b/
libavcodec/avpacket.c
@@
-34,8
+34,7
@@
void av_destruct_packet(AVPacket *pkt)
{
void av_destruct_packet(AVPacket *pkt)
{
- av_free(pkt->data);
- pkt->data = NULL;
+ av_freep(&pkt->data);
pkt->size = 0;
}
pkt->size = 0;
}