1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-25 02:41:50 +02:00

move free data in the video case

Originally committed as revision 18793 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2009-05-11 02:36:57 +00:00
parent e4358e70f8
commit 24ac50525a

View File

@ -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;
}