Browse Source

LAVF API: remove AVOutputFormat.set_parameters() the field is unused.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer 14 years ago
parent
commit
a2eef3e9f5
2 changed files with 3 additions and 9 deletions
  1. +3
    -4
      libavformat/avformat.h
  2. +0
    -5
      libavformat/utils.c

+ 3
- 4
libavformat/avformat.h View File

@@ -285,10 +285,9 @@ typedef struct AVOutputFormat {
* AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS * AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS
*/ */
int flags; 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, int (*interleave_packet)(struct AVFormatContext *, AVPacket *out,
AVPacket *in, int flush); AVPacket *in, int flush);




+ 0
- 5
libavformat/utils.c View File

@@ -2716,11 +2716,6 @@ int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap)
} else } else
s->priv_data = NULL; s->priv_data = NULL;


if (s->oformat->set_parameters) {
ret = s->oformat->set_parameters(s, ap);
if (ret < 0)
return ret;
}
return 0; return 0;
} }




Loading…
Cancel
Save