[vlc-devel] [PATCH 6/7] contrib: add m4v support too taglib
Steve Lhomme
robux4 at gmail.com
Mon Sep 14 14:40:45 CEST 2015
---
contrib/src/taglib/m4v.patch | 29 +++++++++++++++++++++++++++++
contrib/src/taglib/rules.mak | 1 +
2 files changed, 30 insertions(+)
create mode 100644 contrib/src/taglib/m4v.patch
diff --git a/contrib/src/taglib/m4v.patch b/contrib/src/taglib/m4v.patch
new file mode 100644
index 0000000..59f3883
--- /dev/null
+++ b/contrib/src/taglib/m4v.patch
@@ -0,0 +1,29 @@
+--- taglib/taglib/fileref.cpp 2015-08-10 18:32:56.961588900 +0200
++++ taglib/taglib/fileref.cpp.m4v 2015-08-12 11:00:44.933793600 +0200
+@@ -160,6 +160,7 @@
+ l.append("m4p");
+ l.append("3g2");
+ l.append("mp4");
++ l.append("m4v");
+ l.append("wma");
+ l.append("asf");
+ l.append("aif");
+@@ -266,7 +267,7 @@
+ return new Ogg::Opus::File(fileName, readAudioProperties, audioPropertiesStyle);
+ if(ext == "TTA")
+ return new TrueAudio::File(fileName, readAudioProperties, audioPropertiesStyle);
+- if(ext == "M4A" || ext == "M4R" || ext == "M4B" || ext == "M4P" || ext == "MP4" || ext == "3G2")
++ if(ext == "M4A" || ext == "M4R" || ext == "M4B" || ext == "M4P" || ext == "MP4" || ext == "3G2" || ext == "M4V")
+ return new MP4::File(fileName, readAudioProperties, audioPropertiesStyle);
+ if(ext == "WMA" || ext == "ASF")
+ return new ASF::File(fileName, readAudioProperties, audioPropertiesStyle);
+@@ -340,7 +341,7 @@
+ return new Ogg::Opus::File(ioStream, readAudioProperties, audioPropertiesStyle);
+ if(ext == "TTA")
+ return new TrueAudio::File(ioStream, readAudioProperties, audioPropertiesStyle);
+- if(ext == "M4A" || ext == "M4R" || ext == "M4B" || ext == "M4P" || ext == "MP4" || ext == "3G2")
++ if(ext == "M4A" || ext == "M4R" || ext == "M4B" || ext == "M4P" || ext == "MP4" || ext == "3G2" || ext == "M4V")
+ return new MP4::File(ioStream, readAudioProperties, audioPropertiesStyle);
+ if(ext == "WMA" || ext == "ASF")
+ return new ASF::File(ioStream, readAudioProperties, audioPropertiesStyle);
+
diff --git a/contrib/src/taglib/rules.mak b/contrib/src/taglib/rules.mak
index 5011e58..1dbcda0 100644
--- a/contrib/src/taglib/rules.mak
+++ b/contrib/src/taglib/rules.mak
@@ -18,6 +18,7 @@ taglib: taglib-$(TAGLIB_VERSION).tar.gz .sum-taglib
$(APPLY) $(SRC)/taglib/taglib-pc.patch
$(APPLY) $(SRC)/taglib/0002-Rewrote-ByteVector-replace-simpler.patch
$(APPLY) $(SRC)/taglib/iostream.patch
+ $(APPLY) $(SRC)/taglib/m4v.patch
$(MOVE)
.taglib: taglib toolchain.cmake
--
2.5.1
More information about the vlc-devel
mailing list