On 24 Mar 2014, at 06:03, Anton Khirnov <an...@khirnov.net> wrote:

> ---
> Switched replaygain printing to the new API with the struct instead of binary 
> data
> ---
> libavfilter/af_ashowinfo.c |  110 ++++++++++++++++++++++++++++++++++++++++++++
> libavfilter/vf_showinfo.c  |   55 ++++++++++++++++++++++
> 2 files changed, 165 insertions(+)
> 
> diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c
> index 99d9dde..e9649d9 100644
> --- a/libavfilter/af_ashowinfo.c
> +++ b/libavfilter/af_ashowinfo.c
> @@ -30,7 +30,10 @@
> #include "libavutil/attributes.h"
> #include "libavutil/channel_layout.h"
> #include "libavutil/common.h"
> +#include "libavutil/downmix_info.h"
> +#include "libavutil/intreadwrite.h"
> #include "libavutil/mem.h"
> +#include "libavutil/replaygain.h"
> #include "libavutil/samplefmt.h"
> 
> #include "audio.h"
> @@ -66,6 +69,99 @@ static av_cold void uninit(AVFilterContext *ctx)
>     av_freep(&s->plane_checksums);
> }
> 
> +static void dump_matrixenc(AVFilterContext *ctx, AVFrameSideData *sd)
> +{
> +    enum AVMatrixEncoding enc;
> +
> +    av_log(ctx, AV_LOG_INFO, "matrix encoding: ");
> +
> +    if (sd->size < sizeof(enum AVMatrixEncoding)) {
> +        av_log(ctx, AV_LOG_INFO, "invalid data");
> +        return;
> +    }
> +
> +    enc = *(enum AVMatrixEncoding *)sd->data;
> +    switch (enc) {
> +    case AV_MATRIX_ENCODING_NONE:           av_log(ctx, AV_LOG_INFO, 
> "none");                break;
> +    case AV_MATRIX_ENCODING_DOLBY:          av_log(ctx, AV_LOG_INFO, 
> "Dolby");               break;

Sorry for not catching this earlier, this should say "Dolby Surround", IMO. I 
suppose "Dolby Pro Logic" would also do.

Tim
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to