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:
3f9257c
)
asfdec: add side data to ASFStream packet instead of output packet.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Tue, 20 Dec 2011 04:16:51 +0000
(23:16 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 21 Dec 2011 22:52:31 +0000
(17:52 -0500)
fixes memleak of side data
libavformat/asfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/asfdec.c
b/libavformat/asfdec.c
index
1246cc1
..
91d285e
100644
(file)
--- a/
libavformat/asfdec.c
+++ b/
libavformat/asfdec.c
@@
-979,7
+979,7
@@
static int ff_asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pk
asf_st->packet_pos= asf->packet_pos;
if (asf_st->pkt.data && asf_st->palette_changed) {
uint8_t *pal;
- pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
+ pal = av_packet_new_side_data(
&asf_st->
pkt, AV_PKT_DATA_PALETTE,
AVPALETTE_SIZE);
if (!pal) {
av_log(s, AV_LOG_ERROR, "Cannot append palette to packet\n");