diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-11 06:36:57 +0400 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-11 06:36:57 +0400 |
commit | 24ac50525a219d5451f5cd712a4557dcca50198a (patch) | |
tree | 60e187ddbb7642ee7e2df244a3f2f0f5ae63332e /libavformat | |
parent | e4358e70f8509e0cbdfa968236a3665ed7be15a2 (diff) |
move free data in the video case
Originally committed as revision 18793 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegtsenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 82fbd9abe8..0d6436eb18 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -741,6 +741,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) st->codec->codec_type == CODEC_TYPE_VIDEO) { // for video and subtitle, write a single pes packet mpegts_write_pes(s, st, buf, size, pts, dts); + av_free(data); return 0; } @@ -769,8 +770,6 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) } } - av_free(data); - return 0; } |