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:
9162842
)
fixed memory leak
author
Fabrice Bellard
<fabrice@bellard.org>
Thu, 20 Nov 2003 11:22:25 +0000
(11:22 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Thu, 20 Nov 2003 11:22:25 +0000
(11:22 +0000)
Originally committed as revision 2525 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
036c384
..
7cbb1a0
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-698,13
+698,11
@@
static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
return 0;
}
} else {
+ /* free packet */
+ av_free_packet(&s->cur_pkt);
s->cur_st = NULL;
}
} else {
- /* free previous packet */
- if (s->cur_st && s->cur_st->parser)
- av_free_packet(&s->cur_pkt);
-
/* read next packet */
ret = av_read_packet(s, &s->cur_pkt);
if (ret < 0)