[SCM] libav/experimental: flacdec: export replaygain tags from Vorbis comments

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:02:40 UTC 2014


The following commit has been merged in the experimental branch:
commit 1d55f8d5f6f2cd74fa27170e2be37a72441d9202
Author: Alessandro Ghedini <alessandro at ghedini.me>
Date:   Fri Apr 4 11:50:45 2014 +0200

    flacdec: export replaygain tags from Vorbis comments
    
    Signed-off-by: Anton Khirnov <anton at khirnov.net>

diff --git a/libavformat/Makefile b/libavformat/Makefile
index 5e1f948..8be9e2d 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -116,6 +116,7 @@ OBJS-$(CONFIG_FILMSTRIP_MUXER)           += filmstripenc.o
 OBJS-$(CONFIG_FLAC_DEMUXER)              += flacdec.o rawdec.o \
                                             flac_picture.o   \
                                             oggparsevorbis.o \
+                                            replaygain.o     \
                                             vorbiscomment.o
 OBJS-$(CONFIG_FLAC_MUXER)                += flacenc.o flacenc_header.o \
                                             vorbiscomment.o
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c
index ecbb7ec..11360a9 100644
--- a/libavformat/flacdec.c
+++ b/libavformat/flacdec.c
@@ -26,6 +26,7 @@
 #include "rawdec.h"
 #include "oggdec.h"
 #include "vorbiscomment.h"
+#include "replaygain.h"
 #include "libavcodec/bytestream.h"
 
 static int flac_read_header(AVFormatContext *s)
@@ -146,6 +147,10 @@ static int flac_read_header(AVFormatContext *s)
         }
     }
 
+    ret = ff_replaygain_export(st, s->metadata);
+    if (ret < 0)
+        return ret;
+
     return 0;
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list