mp4v2: Add patches from Handbrake project

mp4v2 seems abandoned upstream.

Patches:
- A00: Add API call for subpicture subtitles
- A01: Fix divide by zero
- A02: Give a meaningfull error when hitting 4GB limit
- P00: Fix compilation with mingw32
This commit is contained in:
Wout Mertens
2014-05-04 01:56:48 +02:00
parent ccb065a08c
commit d1ebc1a2b3
5 changed files with 196 additions and 1 deletions
+7 -1
View File
@@ -1,13 +1,19 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "mp4v2-1.9.1";
name = "mp4v2-1.9.1p4";
src = fetchurl {
url = "http://mp4v2.googlecode.com/files/${name}.tar.bz2";
sha256 = "1d73qbi0faqad3bpmjfr4kk0mfmqpl1f43ysrx4gq9i3mfp1qf2w";
};
# From Handbrake
# mp4v2 doesn't seem to be actively maintained any more :-/
patches = [
./A00-nero-vobsub.patch ./A01-divide-zero.patch ./A02-meaningful-4gb-warning.patch
./P00-mingw-dllimport.patch
];
# `faac' expects `mp4.h'.
postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";