[SCM] libav/experimental: fixed memory leak
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:38:24 UTC 2013
The following commit has been merged in the experimental branch:
commit bcbecff13f2d9c8af19039fa82703efd4c04eb97
Author: Fabrice Bellard <fabrice at bellard.org>
Date: Thu Nov 20 11:22:25 2003 +0000
fixed memory leak
Originally committed as revision 2525 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 036c384..7cbb1a0 100644
--- 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)
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list