Mercurial > libavformat.hg
changeset 4922:2647ebecc2f5 libavformat
move free data in the video case
author | bcoudurier |
---|---|
date | Mon, 11 May 2009 02:36:57 +0000 |
parents | fa21da521576 |
children | a88b31642727 |
files | mpegtsenc.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegtsenc.c Mon May 11 02:30:29 2009 +0000 +++ b/mpegtsenc.c Mon May 11 02:36:57 2009 +0000 @@ -741,6 +741,7 @@ 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 @@ } } - av_free(data); - return 0; }