提交 24ac5052 编写于 作者: B Baptiste Coudurier

move free data in the video case

Originally committed as revision 18793 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 e4358e70
...@@ -741,6 +741,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -741,6 +741,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
st->codec->codec_type == CODEC_TYPE_VIDEO) { st->codec->codec_type == CODEC_TYPE_VIDEO) {
// for video and subtitle, write a single pes packet // for video and subtitle, write a single pes packet
mpegts_write_pes(s, st, buf, size, pts, dts); mpegts_write_pes(s, st, buf, size, pts, dts);
av_free(data);
return 0; return 0;
} }
...@@ -769,8 +770,6 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -769,8 +770,6 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
} }
} }
av_free(data);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册