aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-05-12 22:17:40 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-05-12 22:17:40 +0000
commit4440b1188ebc1e9fc901bccfcee384423b0a264f (patch)
treecb499eecd78643472d5dcdeea82313b31dc4fca4
parent54a5c7193be19ad781a1df539bd120c3d8987251 (diff)
downloadffmpeg-4440b1188ebc1e9fc901bccfcee384423b0a264f.tar.gz
simplify, no need for a function
Originally committed as revision 9008 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mov.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6f783b3d05..37a91ff42d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1207,14 +1207,6 @@ static const MOVParseTableEntry mov_default_parse_table[] = {
{ 0L, NULL }
};
-static void mov_free_stream_context(MOVStreamContext *sc)
-{
- if(sc) {
- av_freep(&sc->ctts_data);
- av_freep(&sc);
- }
-}
-
/* XXX: is it sufficient ? */
static int mov_probe(AVProbeData *p)
{
@@ -1570,8 +1562,10 @@ static int mov_read_close(AVFormatContext *s)
{
int i;
MOVContext *mov = s->priv_data;
- for(i=0; i<mov->total_streams; i++)
- mov_free_stream_context(mov->streams[i]);
+ for(i=0; i<mov->total_streams; i++) {
+ av_freep(&mov->streams[i]->ctts_data);
+ av_freep(&mov->streams[i]);
+ }
if(mov->dv_demux){
for(i=0; i<mov->dv_fctx->nb_streams; i++){
av_freep(&mov->dv_fctx->streams[i]->codec);