LAVF API: remove AVOutputFormat.set_parameters() the field is unused.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Apr 2011 18:03:16 +0000 (20:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Apr 2011 20:09:15 +0000 (22:09 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avformat.h
libavformat/utils.c

index 2f41f72..c77cbbb 100644 (file)
@@ -285,10 +285,9 @@ typedef struct AVOutputFormat {
      * AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS
      */
     int flags;
-    /**
-     * Currently only used to set pixel format if not YUV420P.
-     */
-    int (*set_parameters)(struct AVFormatContext *, AVFormatParameters *);
+
+    void *dummy;
+
     int (*interleave_packet)(struct AVFormatContext *, AVPacket *out,
                              AVPacket *in, int flush);
 
index e7ce911..501a411 100644 (file)
@@ -2716,11 +2716,6 @@ int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap)
     } else
         s->priv_data = NULL;
 
-    if (s->oformat->set_parameters) {
-        ret = s->oformat->set_parameters(s, ap);
-        if (ret < 0)
-            return ret;
-    }
     return 0;
 }