Merge commit '95b7fa1729b93bbb3f4fb85a5c0cb53cf970c3c7'
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jun 2014 10:54:15 +0000 (12:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jun 2014 10:54:15 +0000 (12:54 +0200)
* commit '95b7fa1729b93bbb3f4fb85a5c0cb53cf970c3c7':
  oggenc: Support flushing the muxer

Conflicts:
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavformat/oggenc.c
libavformat/version.h

@@@ -647,79 -640,6 +664,79 @@@ AVOutputFormat ff_ogg_muxer = 
      .write_header      = ogg_write_header,
      .write_packet      = ogg_write_packet,
      .write_trailer     = ogg_write_trailer,
-     .flags             = AVFMT_TS_NEGATIVE,
+     .flags             = AVFMT_TS_NEGATIVE | AVFMT_ALLOW_FLUSH,
      .priv_class        = &ogg_muxer_class,
  };
 +#endif
 +
 +#if CONFIG_OGA_MUXER
 +static const AVClass oga_muxer_class = {
 +    .class_name = "Ogg audio muxer",
 +    .item_name  = av_default_item_name,
 +    .option     = options,
 +    .version    = LIBAVUTIL_VERSION_INT,
 +};
 +
 +AVOutputFormat ff_oga_muxer = {
 +    .name              = "oga",
 +    .long_name         = NULL_IF_CONFIG_SMALL("Ogg audio"),
 +    .mime_type         = "audio/ogg",
 +    .extensions        = "oga",
 +    .priv_data_size    = sizeof(OGGContext),
 +    .audio_codec       = AV_CODEC_ID_VORBIS,
 +    .video_codec       = AV_CODEC_ID_NONE,
 +    .write_header      = ogg_write_header,
 +    .write_packet      = ogg_write_packet,
 +    .write_trailer     = ogg_write_trailer,
 +    .flags             = AVFMT_TS_NEGATIVE,
 +    .priv_class        = &oga_muxer_class,
 +};
 +#endif
 +
 +#if CONFIG_SPEEX_MUXER
 +static const AVClass speex_muxer_class = {
 +    .class_name = "Speex muxer",
 +    .item_name  = av_default_item_name,
 +    .option     = options,
 +    .version    = LIBAVUTIL_VERSION_INT,
 +};
 +
 +AVOutputFormat ff_speex_muxer = {
 +    .name              = "speex",
 +    .long_name         = NULL_IF_CONFIG_SMALL("Speex"),
 +    .mime_type         = "audio/ogg",
 +    .extensions        = "spx",
 +    .priv_data_size    = sizeof(OGGContext),
 +    .audio_codec       = AV_CODEC_ID_SPEEX,
 +     .video_codec      = AV_CODEC_ID_NONE,
 +    .write_header      = ogg_write_header,
 +    .write_packet      = ogg_write_packet,
 +    .write_trailer     = ogg_write_trailer,
 +    .flags             = AVFMT_TS_NEGATIVE,
 +    .priv_class        = &speex_muxer_class,
 +};
 +#endif
 +
 +#if CONFIG_OPUS_MUXER
 +static const AVClass opus_muxer_class = {
 +    .class_name = "Opus muxer",
 +    .item_name  = av_default_item_name,
 +    .option     = options,
 +    .version    = LIBAVUTIL_VERSION_INT,
 +};
 +
 +AVOutputFormat ff_opus_muxer = {
 +    .name              = "opus",
 +    .long_name         = NULL_IF_CONFIG_SMALL("Opus"),
 +    .mime_type         = "audio/ogg",
 +    .extensions        = "opus",
 +    .priv_data_size    = sizeof(OGGContext),
 +    .audio_codec       = AV_CODEC_ID_OPUS,
 +    .video_codec       = AV_CODEC_ID_NONE,
 +    .write_header      = ogg_write_header,
 +    .write_packet      = ogg_write_packet,
 +    .write_trailer     = ogg_write_trailer,
 +    .flags             = AVFMT_TS_NEGATIVE,
 +    .priv_class        = &opus_muxer_class,
 +};
 +#endif
@@@ -30,8 -30,8 +30,8 @@@
  #include "libavutil/version.h"
  
  #define LIBAVFORMAT_VERSION_MAJOR 55
 -#define LIBAVFORMAT_VERSION_MINOR 19
 -#define LIBAVFORMAT_VERSION_MICRO  1
 +#define LIBAVFORMAT_VERSION_MINOR 42
- #define LIBAVFORMAT_VERSION_MICRO 100
++#define LIBAVFORMAT_VERSION_MICRO 101
  
  #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                 LIBAVFORMAT_VERSION_MINOR, \