On Sun, Jun 19, 2016 at 12:40:57AM +0100, Josh de Kock wrote:
[...]
> +#define OFFSET(x) offsetof(OpenMPTContext, x)
> +#define A AV_OPT_FLAG_AUDIO_PARAM
> +#define D AV_OPT_FLAG_DECODING_PARAM
> +static const AVOption options[] = {
> +{"sample_rate", "set sample rate",
>
Fixes ticket #5623
TODO: bump lavf minor
Hi,
This should address all prior concerns. The issue with channel layouts
was resolved because of various issues with surround output it was
decided to just use stereo and let the user override mono/surround if
needed.
Josh
---
Changelog
On Sun, Jun 12, 2016 at 02:43:10AM +0100, Josh de Kock wrote:
> ---
> configure| 4 +
> libavformat/Makefile | 1 +
> libavformat/allformats.c | 1 +
> libavformat/libopenmpt.c | 185
> +++
> 4 files changed, 191 insertions(+)
Josh de Kock itanimul.li> writes:
> +if (p->buf[1080] == 'M' && p->buf[1081] == '.' &&
> +p->buf[1082] == 'K' && p->buf[1083] == '.')
> +return AVPROBE_SCORE_MAX;
This should return EXTENSION + 1 when testing 32bit.
> +openmpt->channels = openmpt_module_get_num_channels(
---
configure| 4 +
libavformat/Makefile | 1 +
libavformat/allformats.c | 1 +
libavformat/libopenmpt.c | 185 +++
4 files changed, 191 insertions(+)
create mode 100644 libavformat/libopenmpt.c
diff --git a/configure b/config