debian/0000755000000000000000000000000012357773113007177 5ustar debian/docs0000644000000000000000000000001312357772261010047 0ustar README.txt debian/watch0000644000000000000000000000022212357772261010227 0ustar version=3 https://launchpad.net/m2vrequantiser/+download \ https://launchpad.net/m2vrequantiser/trunk/.*/\+download/M2VRequantiser-v(.*)\.tar\.gz debian/copyright0000644000000000000000000000216412357772261011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: M2VRequantiser Upstream-Contact: Martin Wimpress Source: https://launchpad.net/m2vrequantiser/+download Files: * Copyright: No copyright holders License: GPL-2+ Files: debian/* Copyright: 2012 Alessio Treglia License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Comment: On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. . You should have received a copy of the GNU General Public License along with this program. If not, see . debian/changelog0000644000000000000000000000113612357774517011063 0ustar m2vrequantiser (1.1-2) unstable; urgency=medium * Avoid sscanf() access to argv's 3rd argument when only one is given. (Closes: #715590) * debian/patches/1001-makefile.patch: - Don't append -g -02 to CFLAGS by default, let the build takes it on its own. - Process CPPFLAGS when compiling for hardening. * Set up debhelper 9. * Bump Standards. -- Alessio Treglia Fri, 11 Jul 2014 15:35:43 +0100 m2vrequantiser (1.1-1) unstable; urgency=low * Initial release. (Closes: #664979) -- Alessio Treglia Fri, 23 Mar 2012 09:20:55 +0100 debian/control0000644000000000000000000000167412357774524010621 0ustar Source: m2vrequantiser Section: video Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Alessio Treglia Build-Depends: debhelper (>= 9~) Homepage: https://launchpad.net/m2vrequantiser Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-multimedia/m2vrequantiser.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/m2vrequantiser.git Package: m2vrequantiser Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: MPEG-2 streams requantization This package provides m2vrequantiser, a tool to requantize MPEG-2 streams without recompressing. M2VRequantiser accepts raw MPEG2 video data (not VOB) from standard input and writes the recompressed frames to standard output. . m2vrequantiser represents a good replacement for tcrequant, an obsolete utility provided by some versions of the transcode suite. debian/compat0000644000000000000000000000000212357773632010403 0ustar 9 debian/rules0000755000000000000000000000007512357772261010264 0ustar #!/usr/bin/make -f export PREFIX=/usr %: dh $@ --parallel debian/source/0000755000000000000000000000000012357772261010502 5ustar debian/source/format0000644000000000000000000000001412357772261011710 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000003612357772261010620 0ustar [DEFAULT] pristine-tar = True debian/patches/0000755000000000000000000000000012357773612010632 5ustar debian/patches/series0000644000000000000000000000005412357772345012050 0ustar 1001-makefile.patch 1002-argc_sigsegv.patch debian/patches/1002-argc_sigsegv.patch0000644000000000000000000000074612357772773014714 0ustar Subject: Fix SIGSEGV. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715590 Forwarded: no --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- m2vrequantiser.orig/main.c +++ m2vrequantiser/main.c @@ -2315,7 +2315,7 @@ int main (int argc, const char * argv[]) if (argc < 5) { USAGE } delta_bright = atoi(argv[4]); #else - if (argc < 2) { USAGE } + if (argc < 3) { USAGE } #endif fact_x = atof(argv[1]); sscanf(argv[2], "%lld", &orim2vsize); debian/patches/1001-makefile.patch0000644000000000000000000000214412357773612014010 0ustar Description: Handle DESTDIR variable to properly install stuff. Author: Alessio Treglia Forwarded: no --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- m2vrequantiser.orig/Makefile +++ m2vrequantiser/Makefile @@ -1,6 +1,6 @@ PREFIX ?= /usr/local CC = gcc -CFLAGS ?= -O2 -g -funroll-loops -frename-registers +CFLAGS += -funroll-loops -frename-registers CFLAGS += -D_LARGEFILE_SOURCE -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT CFLAGS += -Wall OBJECTS = main.o @@ -14,14 +14,14 @@ M2VRequantiser : $(OBJECTS) $(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) $(LOADLIBES) -o M2VRequantiser %.o : %.c - $(CC) $(CFLAGS) -c $< + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< install: all - $(INSTALL) -d $(PREFIX)/bin - $(INSTALL) -m 755 M2VRequantiser $(PREFIX)/bin + $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin + $(INSTALL) -m 755 M2VRequantiser $(DESTDIR)$(PREFIX)/bin uninstall: - rm -f $(PREFIX)/bin/M2VRequantiser + rm -f $(DESTDIR)$(PREFIX)/bin/M2VRequantiser clean: rm -f M2VRequantiser *.o *~ core