changeset 3481:dcb099852975 libavformat

ffm has no per stream priv_data anymore
author bcoudurier
date Thu, 19 Jun 2008 22:50:17 +0000
parents 886a8a62d740
children 17c0ce4cc314
files ffmdec.c
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/ffmdec.c	Thu Jun 19 10:31:45 2008 +0000
+++ b/ffmdec.c	Thu Jun 19 22:50:17 2008 +0000
@@ -344,7 +344,6 @@
     for(i=0;i<s->nb_streams;i++) {
         st = s->streams[i];
         if (st) {
-            av_freep(&st->priv_data);
             av_free(st);
         }
     }
@@ -466,18 +465,6 @@
     return 0;
 }
 
-static int ffm_read_close(AVFormatContext *s)
-{
-    AVStream *st;
-    int i;
-
-    for(i=0;i<s->nb_streams;i++) {
-        st = s->streams[i];
-        av_freep(&st->priv_data);
-    }
-    return 0;
-}
-
 static int ffm_probe(AVProbeData *p)
 {
     if (
@@ -494,6 +481,6 @@
     ffm_probe,
     ffm_read_header,
     ffm_read_packet,
-    ffm_read_close,
+    NULL,
     ffm_seek,
 };