libde265 (1.0.8-1.1) unstable; urgency=medium
authorPhilipp Kern <pkern@debian.org>
Sun, 16 Oct 2022 13:26:20 +0000 (14:26 +0100)
committerPhilipp Kern <pkern@debian.org>
Sun, 16 Oct 2022 13:26:20 +0000 (14:26 +0100)
  * Non-maintainer upload.
  * Import upstream fixes for CVE-tracked vulnerabilities
    (Closes: #1014977)
    - CVE-2022-1253
    - CVE-2021-36411
    - CVE-2021-36410
    - CVE-2021-36409
    - CVE-2021-36408
    - CVE-2021-35452

[dgit import unpatched libde265 1.0.8-1.1]

24 files changed:
1  2 
debian/changelog
debian/control
debian/copyright
debian/gbp.conf
debian/libde265-0.install
debian/libde265-0.symbols
debian/libde265-dev.docs
debian/libde265-dev.install
debian/libde265-examples.install
debian/not-installed
debian/patches/0001-CVE-2022-1253.patch
debian/patches/0001-fill-32x32-scaling-matrices.patch
debian/patches/0002-CVE-2021-36411.patch
debian/patches/0003-CVE-2021-36410.patch
debian/patches/0004-CVE-2021-36409.patch
debian/patches/0005-CVE-2021-36408.patch
debian/patches/0006-CVE-2021-35452.patch
debian/patches/disable_tools.patch
debian/patches/only_export_decoder_api.patch
debian/patches/series
debian/rules
debian/source/format
debian/upstream/metadata
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..11ca2bd30f780b4e1e08379350a34b3e1f8166af
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,112 @@@
++libde265 (1.0.8-1.1) unstable; urgency=medium
++
++  * Non-maintainer upload.
++  * Import upstream fixes for CVE-tracked vulnerabilities
++    (Closes: #1014977)
++    - CVE-2022-1253
++    - CVE-2021-36411
++    - CVE-2021-36410
++    - CVE-2021-36409
++    - CVE-2021-36408
++    - CVE-2021-35452
++
++ -- Philipp Kern <pkern@debian.org>  Sun, 16 Oct 2022 15:26:20 +0200
++
++libde265 (1.0.8-1) unstable; urgency=medium
++
++  * Update to debhelper compat level 13 and add debian/not-installed
++  * Imported Upstream version 1.0.8
++  * Remove patch applied upstream.
++  * Bump "Standards-Version" to 4.5.1
++
++ -- Joachim Bauch <bauch@struktur.de>  Wed, 16 Dec 2020 16:32:29 +0100
++
++libde265 (1.0.7-1) unstable; urgency=medium
++
++  [ Debian Janitor ]
++  * Set upstream metadata fields: Bug-Submit.
++
++  [ Joachim Bauch ]
++  * Imported Upstream version 1.0.7
++  * Update patches for new upstream version.
++  * Update symbols for new upstream version.
++  * Bump "Standards-Version" to 4.5.0
++
++ -- Joachim Bauch <bauch@struktur.de>  Fri, 25 Sep 2020 13:00:59 +0200
++
++libde265 (1.0.4-1) unstable; urgency=medium
++
++  [ Ondřej Nový ]
++  * Use debhelper-compat instead of debian/compat
++
++  [ Joachim Bauch ]
++  * Imported Upstream version 1.0.4
++  * Enable hardening.
++  * Specify Build-Depends-Package in symbols.
++  * Ignore more internal STL symbols.
++  * Bump "Standards-Version" to 4.4.1
++  * Update to debhelper compat level 12.
++
++  [ Debian Janitor ]
++  * Set upstream metadata fields: Bug-Database, Repository, Repository-
++    Browse.
++
++  [ Sebastian Ramacher ]
++  * debian/rules: Remove obsolete dh_strip override
++
++ -- Joachim Bauch <bauch@struktur.de>  Fri, 20 Dec 2019 12:17:15 +0100
++
++libde265 (1.0.3-1) unstable; urgency=medium
++
++  [ Ondřej Nový ]
++  * d/copyright: Use https protocol in Format field
++  * d/control: Set Vcs-* to salsa.debian.org
++
++  [ Felipe Sateler ]
++  * Change maintainer address to debian-multimedia@lists.debian.org
++
++  [ Joachim Bauch ]
++  * Imported Upstream version 1.0.3
++  * Update patches for new upstream version.
++  * Update symbols for new upstream version.
++  * Update standards version and switch to debhelper 10.
++
++ -- Joachim Bauch <bauch@struktur.de>  Thu, 19 Apr 2018 11:44:40 +0200
++
++libde265 (1.0.2-2) unstable; urgency=low
++
++  [ Joachim Bauch ]
++  * Added patch by Andreas Cadhalpun to fix compilation with FFmpeg 2.9
++    (Closes: #803834)
++  * Updated symbols file for new C++11 symbols.
++
++  [ Sebastian Ramacher ]
++  * Migrate to automatic dbg packages.
++  * debian/control: Remove some unnecessary Build-Depends.
++
++ -- Joachim Bauch <bauch@struktur.de>  Mon, 11 Jan 2016 19:12:19 +0100
++
++libde265 (1.0.2-1) unstable; urgency=low
++
++  * Imported Upstream version 1.0.2
++  * Added new files to copyright information.
++  * Only export decoder API and update symbols for new version.
++
++ -- Joachim Bauch <bauch@struktur.de>  Thu, 16 Jul 2015 11:07:46 +0200
++
++libde265 (0.9-1) unstable; urgency=low
++
++  * Updated symbols to make all "std::vector" symbols optional.
++  * Imported Upstream version 0.9
++  * Removed deprecated patch to update symbols visibility. Changes were
++    applied upstream.
++  * Upstream supports compiling against Qt5, prefer that over Qt4.
++  * Added new symbols from new upstream release.
++
++ -- Joachim Bauch <bauch@struktur.de>  Tue, 16 Sep 2014 18:47:14 +0200
++
++libde265 (0.8-1) unstable; urgency=low
++
++  * Initial release. (Closes: #744190)
++
++ -- Joachim Bauch <bauch@struktur.de>  Fri, 08 Aug 2014 17:23:37 +0200
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e15efef6bce1b2ef9e9e1e40c68ddd0e83c6c722
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,62 @@@
++Source: libde265
++Section: libs
++Priority: optional
++Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
++Uploaders:
++ Alessio Treglia <alessio@debian.org>,
++ Joachim Bauch <bauch@struktur.de>
++Build-Depends:
++ debhelper-compat (= 13),
++ libjpeg-dev,
++ libpng-dev,
++ qtbase5-dev | libqt4-dev,
++ libsdl-dev,
++ libswscale-dev,
++ libx11-dev,
++ libxext-dev,
++ libxv-dev,
++ pkg-config
++Standards-Version: 4.5.1
++Homepage: https://github.com/strukturag/libde265
++Vcs-Git: https://salsa.debian.org/multimedia-team/libde265.git
++Vcs-Browser: https://salsa.debian.org/multimedia-team/libde265
++
++Package: libde265-0
++Architecture: any
++Multi-Arch: same
++Depends:
++ ${misc:Depends},
++ ${shlibs:Depends}
++Description: Open H.265 video codec implementation
++ libde265 is an open source implementation of the H.265 video codec.
++ It is written from scratch in plain C for simplicity and efficiency.
++ Its simple API makes it easy to integrate it into other software.
++
++Package: libde265-dev
++Section: libdevel
++Multi-Arch: same
++Architecture: any
++Depends:
++ libde265-0 (= ${binary:Version}),
++ ${misc:Depends}
++Description: Open H.265 video codec implementation - development files
++ libde265 is an open source implementation of the H.265 video codec.
++ It is written from scratch in plain C for simplicity and efficiency.
++ Its simple API makes it easy to integrate it into other software.
++ .
++ The development headers for compiling programs that use libde265
++ are provided by this package.
++
++Package: libde265-examples
++Section: video
++Architecture: any
++Depends:
++ libde265-0 (= ${binary:Version}),
++ ${misc:Depends},
++ ${shlibs:Depends}
++Description: Open H.265 video codec implementation - examples
++ libde265 is an open source implementation of the H.265 video codec.
++ It is written from scratch in plain C for simplicity and efficiency.
++ Its simple API makes it easy to integrate it into other software.
++ .
++ Sample applications using libde265 are provided by this package.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4c871638b03367ebd15dd10e3ea0ab54441c8f6c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,190 @@@
++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: libde265
++Upstream-Contact: struktur AG <opensource@struktur.de>
++Source: https://github.com/strukturag/libde265
++
++Files: *
++Copyright:
++  2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
++  2013 openHEVC contributors
++License: LGPL-3+
++
++Files: dec265/dec265.cc
++ dec265/hdrcopy.cc
++ dec265/sdl.cc
++ dec265/sdl.hh
++ enc265/enc265.cc
++ sherlock265/VideoDecoder.cc
++ sherlock265/VideoDecoder.hh
++ sherlock265/VideoPlayer.cc
++ sherlock265/VideoPlayer.hh
++ sherlock265/VideoWidget.cc
++ sherlock265/VideoWidget.hh
++ sherlock265/sherlock265.cc
++ tools/bjoentegaard.cc
++ tools/block-rate-estim.cc
++ tools/gen-entropy-table.cc
++ tools/rd-curves.cc
++ tools/tests.cc
++ tools/yuv-distortion.cc
++Copyright:
++  2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
++  2013-2014 struktur AG, Joachim Bauch <bauch@struktur.de>
++  1998-2013 Free Software Foundation, Inc
++License: GPL-3+
++Comment: Please note that only the sample applications are GPL-3+ while
++ the decoding library itself is licensed as LGPL-3+.
++
++Files: extra/getopt.c
++ extra/getopt.h
++ extra/getopt_long.c
++Copyright: 1987-1996 The Regents of the University of California
++License: BSD-4-clause
++
++Files: libde265/md5.cc
++ libde265/md5.h
++Copyright: No copyright holder
++License: public-domain-1
++ This software was written by Alexander Peslyak in 2001.  No copyright is
++ claimed, and the software is hereby placed in the public domain.
++ In case this attempt to disclaim copyright and place the software in the
++ public domain is deemed null and void, then the software is
++ Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
++ general public under the following terms:
++ .
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted.
++ .
++ There's ABSOLUTELY NO WARRANTY, express or implied.
++ .
++ (This is a heavily cut-down "BSD license".)
++ .
++ This differs from Colin Plumb's older public domain implementation in that
++ no exactly 32-bit integer data type is required (any 32-bit or wider
++ unsigned integer data type will do), there's no compile-time endianness
++ configuration, and the function prototypes match OpenSSL's.  No code from
++ Colin Plumb's implementation has been reused; this comment merely compares
++ the properties of the two independent implementations.
++ .
++ The primary goals of this implementation are portability and ease of use.
++ It is meant to be fast, but not as fast as possible.  Some known
++ optimizations are not included to reduce source code size and avoid
++ compile-time configuration.
++
++Files: extra/stdint.h
++Copyright: No copyright holder
++License: public-domain-2
++ ISO C9x  7.18  Integer types <stdint.h>
++ Based on ISO/IEC SC22/WG14 9899 Committee draft (SC22 N2794)
++ .
++ THIS SOFTWARE IS NOT COPYRIGHTED
++ .
++ Contributor: Danny Smith <danny_r_smith_2001@yahoo.co.nz>
++ .
++ This source code is offered for use in the public domain. You may
++ use, modify or distribute it freely.
++ .
++ This code is distributed in the hope that it will be useful but
++ WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
++ DISCLAIMED. This includes but is not limited to warranties of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++ .
++ Date: 2000-12-02
++
++Files: extra/win32cond.c
++ extra/win32cond.h
++Copyright:
++  1993-2009 Douglas C. Schmidt and his research group at
++ Washington University, University of California, Irvine, and
++ Vanderbilt University
++License: other-1
++ ACE(TM), TAO(TM), CIAO(TM), DAnCE>(TM), and CoSMIC(TM) (henceforth
++ referred to as "DOC software") are copyrighted by Douglas C. Schmidt
++ and his research group at Washington University, University of California,
++ Irvine, and Vanderbilt University, Copyright (c) 1993-2009, all rights
++ reserved.
++ .
++ Since DOC software is open-source, freely available software, you are free
++ to use, modify, copy, and distribute--perpetually and irrevocably--the DOC
++ software source code and object code produced from the source, as well as
++ copy and distribute modified versions of this software. You must, however,
++ include this copyright statement along with any code built using DOC
++ software that you release.
++ .
++ No copyright statement needs to be provided if you just ship binary
++ executables of your software products.
++ .
++ See "Strategies for Implementing POSIX Condition Variables on Win32" at
++ http://www.cs.wustl.edu/~schmidt/win32-cv-1.html
++
++Files: debian/*
++Copyright:
++  2014 Joachim Bauch <jojo@struktur.de>
++  2014 Alessio Treglia <alessio@debian.org>
++License: LGPL-3+
++
++License: GPL-3+
++ 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 3 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.
++ .
++ On Debian systems the complete text of the GNU General Public License
++ can be found in the `/usr/share/common-licenses/GPL-3' file.
++ .
++ You should have received a copy of the GNU General Public License
++ along with this program.  If not, see <http://www.gnu.org/licenses/>.
++
++License: LGPL-3+
++ 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 3 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.
++ .
++ On Debian systems the complete text of the GNU Lesser General Public
++ License can be found in the `/usr/share/common-licenses/LGPL-3' file.
++ .
++ You should have received a copy of the GNU General Public License
++ along with this program.  If not, see <http://www.gnu.org/licenses/>.
++
++License: BSD-4-clause
++ Copyright (c) 1987, 1993, 1994
++ The Regents of the University of California.  All rights reserved.
++ .
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in the
++    documentation and/or other materials provided with the distribution.
++ 3. All advertising materials mentioning features or use of this software
++    must display the following acknowledgement:
++    This product includes software developed by the University of
++    California, Berkeley and its contributors.
++ 4. Neither the name of the University nor the names of its contributors
++    may be used to endorse or promote products derived from this software
++    without specific prior written permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ SUCH DAMAGE.
diff --cc debian/gbp.conf
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cec628c7444886870d72dc8bcd536479e7f8a284
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++[DEFAULT]
++pristine-tar = True
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3de3b10a49844edfe7e12e2fde3eb1357306fbfc
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++usr/lib/*/*.so.*
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2eb2c5d7c7821cb12dc5efe2d74c935f1c3f1a81
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,78 @@@
++libde265.so.0 libde265-0 #MINVER#
++* Build-Depends-Package: libde265-dev
++ (optional|c++|regex)"^std::_Sp_counted_base<.*@Base$" 1.0.2
++ (optional|c++|regex)"^std::_Sp_counted_ptr<.*@Base$" 1.0.3
++ (optional|c++|regex)"^std::_Sp_make_shared_tag.*@Base$" 1.0.4
++ (optional|c++|regex)"^std::_Vector_base<.*@Base$" 1.0.7
++ (optional|c++|regex)"^std::__cxx11::basic_stringbuf<.*@Base$" 1.0.2
++ (optional|c++|regex)"^std::vector<.*@Base$" 1.0.2
++ (optional|c++|regex)"^typeinfo for std::.*@Base$" 1.0.2
++ (optional|c++|regex)"^typeinfo name for std::.*@Base$" 1.0.2
++ (optional|c++|regex)"^void std::vector<.*@Base$" 1.0.2
++ (optional=only used internally by dec265|c++)"MSE(unsigned char const*, int, unsigned char const*, int, int, int)@Base" 1.0.2
++ (optional=only used internally by dec265|c++)"PSNR(double)@Base" 1.0.2
++ (optional=only used by the non-final encoder api)de265_alloc_image_plane@Base 1.0.2
++ de265_change_framerate@Base 0.8
++ de265_decode@Base 0.8
++ de265_decode_data@Base 0.8
++ de265_disable_logging@Base 0.8
++ de265_flush_data@Base 0.8
++ de265_free@Base 0.8
++ de265_free_decoder@Base 0.8
++ (optional=only used by the non-final encoder api)de265_free_image_plane@Base 1.0.2
++ de265_get_bits_per_pixel@Base 1.0.2
++ de265_get_chroma_format@Base 0.8
++ de265_get_current_TID@Base 0.8
++ de265_get_default_image_allocation_functions@Base 0.8
++ de265_get_error_text@Base 0.8
++ de265_get_highest_TID@Base 0.8
++ de265_get_image_NAL_header@Base 0.8
++ de265_get_image_PTS@Base 0.8
++ de265_get_image_colour_primaries@Base 1.0.7
++ de265_get_image_full_range_flag@Base 1.0.7
++ de265_get_image_height@Base 0.8
++ de265_get_image_matrix_coefficients@Base 1.0.7
++ de265_get_image_plane@Base 0.8
++ de265_get_image_plane_user_data@Base 0.8
++ de265_get_image_transfer_characteristics@Base 1.0.7
++ de265_get_image_user_data@Base 0.8
++ de265_get_image_width@Base 0.8
++ de265_get_next_picture@Base 0.8
++ de265_get_number_of_NAL_units_pending@Base 0.8
++ de265_get_number_of_input_bytes_pending@Base 0.8
++ de265_get_parameter_bool@Base 0.8
++ de265_get_version@Base 0.8
++ de265_get_version_number@Base 0.8
++ de265_get_version_number_maintenance@Base 1.0.2
++ de265_get_version_number_major@Base 1.0.2
++ de265_get_version_number_minor@Base 1.0.2
++ de265_get_warning@Base 0.8
++ de265_init@Base 0.8
++ de265_isOK@Base 0.8
++ de265_new_decoder@Base 0.8
++ de265_peek_next_picture@Base 0.8
++ de265_push_NAL@Base 0.8
++ de265_push_data@Base 0.8
++ de265_push_end_of_NAL@Base 0.8
++ de265_push_end_of_frame@Base 0.9
++ de265_release_next_picture@Base 0.8
++ de265_reset@Base 0.8
++ de265_set_framerate_ratio@Base 0.8
++ de265_set_image_allocation_functions@Base 0.8
++ de265_set_image_plane@Base 0.8
++ de265_set_image_user_data@Base 0.9
++ de265_set_limit_TID@Base 0.8
++ de265_set_parameter_bool@Base 0.8
++ de265_set_parameter_int@Base 0.8
++ de265_set_verbosity@Base 0.8
++ de265_start_worker_threads@Base 0.8
++ (optional=only used internally by sherlock265)draw_CB_grid@Base 0.8
++ (optional=only used internally by sherlock265)draw_Motion@Base 0.8
++ (optional=only used internally by sherlock265)draw_PB_grid@Base 0.8
++ (optional=only used internally by sherlock265)draw_PB_pred_modes@Base 0.8
++ (optional=only used internally by sherlock265)draw_QuantPY@Base 0.8
++ (optional=only used internally by sherlock265)draw_Slices@Base 0.8
++ (optional=only used internally by sherlock265)draw_TB_grid@Base 0.8
++ (optional=only used internally by sherlock265)draw_Tiles@Base 0.8
++ (optional=only used internally by sherlock265)draw_intra_pred_modes@Base 0.8
++ (optional=only used by the non-final encoder api|regex)en265_.*@Base 1.0.2
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b43bf86b50fd8d3529a0dc062c30006ed38f309e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++README.md
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..60fe5cb6b7e69f2cc7f8b591128666e6017bba92
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
++usr/include/*
++usr/lib/*/*.so
++usr/lib/*/pkgconfig/*
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1df36c612fb7cd107795e240186fbddfc0f953b9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++usr/bin/*
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..86d06e24afafdf63dfb6c64ac99352421f2eb68a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++usr/lib/*/libde265.a
++usr/lib/*/libde265.la
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0a251cfa87c29ab6013a2b1f30c69a49e7a7bccd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,50 @@@
++From 8e89fe0e175d2870c39486fdd09250b230ec10b8 Mon Sep 17 00:00:00 2001
++From: Dirk Farin <dirk.farin@gmail.com>
++Date: Tue, 5 Apr 2022 09:52:57 +0200
++Subject: [PATCH] error on out-of-range cpb_cnt_minus1 (oss-fuzz issue 27590)
++
++---
++ libde265/sps.cc | 5 ++++-
++ libde265/vui.cc | 6 ++++++
++ 2 files changed, 10 insertions(+), 1 deletion(-)
++
++Index: libde265-1.0.8/libde265/sps.cc
++===================================================================
++--- libde265-1.0.8.orig/libde265/sps.cc
+++++ libde265-1.0.8/libde265/sps.cc
++@@ -425,7 +425,10 @@ de265_error seq_parameter_set::read(erro
++ 
++   vui_parameters_present_flag = get_bits(br,1);
++   if (vui_parameters_present_flag) {
++-    vui.read(errqueue, br, this);
+++    de265_error err = vui.read(errqueue, br, this);
+++    if (err) {
+++      return err;
+++    }
++   }
++ 
++ 
++Index: libde265-1.0.8/libde265/vui.cc
++===================================================================
++--- libde265-1.0.8.orig/libde265/vui.cc
+++++ libde265-1.0.8/libde265/vui.cc
++@@ -201,6 +201,9 @@ de265_error video_usability_information:
++     if (!low_delay_hrd_flag[i])
++     {
++       READ_VLC_OFFSET(cpb_cnt_minus1[i], uvlc, 0);
+++      if (cpb_cnt_minus1[i] > 31) {
+++     return DE265_ERROR_CODED_PARAMETER_OUT_OF_RANGE;
+++      }
++     }
++ 
++     for (nalOrVcl = 0; nalOrVcl < 2; nalOrVcl++)
++@@ -361,6 +364,9 @@ de265_error video_usability_information:
++     if (vui_hrd_parameters_present_flag) {
++       de265_error err;
++       err = hrd_parameters(errqueue, br, sps);
+++      if (err) {
+++     return err;
+++      }
++     }
++   }
++ 
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d303a342463680519e229541e415819116acfa7b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,85 @@@
++From 7d5aeb5f11531de33f5b7ae0e768ffc50da4facb Mon Sep 17 00:00:00 2001
++From: Dirk Farin <dirk.farin@gmail.com>
++Date: Tue, 23 Feb 2021 16:29:01 +0100
++Subject: [PATCH] fill 32x32 scaling matrices
++
++---
++ libde265/sps.cc       | 25 +++++++++++++++++++++++--
++ libde265/sps.h        |  2 +-
++ libde265/transform.cc |  4 +---
++ 3 files changed, 25 insertions(+), 6 deletions(-)
++
++Index: libde265-1.0.8/libde265/sps.cc
++===================================================================
++--- libde265-1.0.8.orig/libde265/sps.cc
+++++ libde265-1.0.8/libde265/sps.cc
++@@ -873,10 +873,10 @@ de265_error read_scaling_list(bitreader*
++   int dc_coeff[4][6];
++ 
++   for (int sizeId=0;sizeId<4;sizeId++) {
++-    int n = ((sizeId==3) ? 2 : 6);
+++    //int n = ((sizeId==3) ? 2 : 6);
++     uint8_t scaling_list[6][32*32];
++ 
++-    for (int matrixId=0;matrixId<n;matrixId++) {
+++    for (int matrixId=0 ; matrixId<6 ; matrixId += (sizeId==3 ? 3 : 1)) {
++       uint8_t* curr_scaling_list = scaling_list[matrixId];
++       int scaling_list_dc_coef;
++ 
++@@ -982,6 +982,27 @@ de265_error read_scaling_list(bitreader*
++     }
++   }
++ 
+++
+++  // --- fill 32x32 matrices for chroma
+++
+++  const position* scan = get_scan_order(3, 0 /* diag */);
+++     
+++  for (int matrixId=0;matrixId<6;matrixId++)
+++    if (matrixId!=0 && matrixId!=3) {
+++      for (int i=0;i<64;i++) {
+++     int x = scan[i].x;
+++     int y = scan[i].y;
+++     int v = sclist->ScalingFactor_Size1[matrixId][y][x];
+++
+++     for (int dy=0;dy<4;dy++)
+++       for (int dx=0;dx<4;dx++) {
+++         sclist->ScalingFactor_Size3[matrixId][4*y+dy][4*x+dx] = v;
+++       }
+++      }
+++
+++      sclist->ScalingFactor_Size3[matrixId][0][0] = sclist->ScalingFactor_Size1[matrixId][0][0];
+++    }
+++  
++   return DE265_OK;
++ }
++ 
++Index: libde265-1.0.8/libde265/sps.h
++===================================================================
++--- libde265-1.0.8.orig/libde265/sps.h
+++++ libde265-1.0.8/libde265/sps.h
++@@ -54,7 +54,7 @@ typedef struct scaling_list_data {
++   uint8_t ScalingFactor_Size0[6][4][4];
++   uint8_t ScalingFactor_Size1[6][8][8];
++   uint8_t ScalingFactor_Size2[6][16][16];
++-  uint8_t ScalingFactor_Size3[2][32][32];
+++  uint8_t ScalingFactor_Size3[6][32][32];
++ } scaling_list_data;
++ 
++ 
++Index: libde265-1.0.8/libde265/transform.cc
++===================================================================
++--- libde265-1.0.8.orig/libde265/transform.cc
+++++ libde265-1.0.8/libde265/transform.cc
++@@ -504,10 +504,8 @@ void scale_coefficients_internal(thread_
++ 
++       for (int i=0;i<tctx->nCoeff[cIdx];i++) {
++         int pos = tctx->coeffPos[cIdx][i];
++-        int x = pos%nT;
++-        int y = pos/nT;
++ 
++-        const int m_x_y = sclist[x+y*nT];
+++        const int m_x_y = sclist[pos];
++         const int fact = m_x_y * levelScale[qP%6] << (qP/6);
++ 
++         int64_t currCoeff  = tctx->coeffList[cIdx][i];
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..234a544dc660a62bd73aef127f10ead390cd008b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,168 @@@
++From 45904e5667c5bf59c67fcdc586dfba110832894c Mon Sep 17 00:00:00 2001
++From: Dirk Farin <dirk.farin@gmail.com>
++Date: Tue, 5 Apr 2022 20:00:20 +0200
++Subject: [PATCH] fix reading invalid images where shdr references are NULL in
++ part of the image (#302)
++
++---
++ libde265/deblock.cc | 127 +++++++++++++++++++++++---------------------
++ libde265/sao.cc     |   5 +-
++ 2 files changed, 70 insertions(+), 62 deletions(-)
++
++diff --git a/libde265/deblock.cc b/libde265/deblock.cc
++index 62428832..60fd2ca1 100644
++--- a/libde265/deblock.cc
+++++ b/libde265/deblock.cc
++@@ -295,67 +295,72 @@ void derive_boundaryStrength(de265_image* img, bool vertical, int yStart,int yEn
++             slice_segment_header* shdrP = img->get_SliceHeader(xDiOpp,yDiOpp);
++             slice_segment_header* shdrQ = img->get_SliceHeader(xDi   ,yDi);
++ 
++-            int refPicP0 = mviP.predFlag[0] ? shdrP->RefPicList[0][ mviP.refIdx[0] ] : -1;
++-            int refPicP1 = mviP.predFlag[1] ? shdrP->RefPicList[1][ mviP.refIdx[1] ] : -1;
++-            int refPicQ0 = mviQ.predFlag[0] ? shdrQ->RefPicList[0][ mviQ.refIdx[0] ] : -1;
++-            int refPicQ1 = mviQ.predFlag[1] ? shdrQ->RefPicList[1][ mviQ.refIdx[1] ] : -1;
++-
++-            bool samePics = ((refPicP0==refPicQ0 && refPicP1==refPicQ1) ||
++-                             (refPicP0==refPicQ1 && refPicP1==refPicQ0));
++-
++-            if (!samePics) {
++-              bS = 1;
++-            }
++-            else {
++-              MotionVector mvP0 = mviP.mv[0]; if (!mviP.predFlag[0]) { mvP0.x=mvP0.y=0; }
++-              MotionVector mvP1 = mviP.mv[1]; if (!mviP.predFlag[1]) { mvP1.x=mvP1.y=0; }
++-              MotionVector mvQ0 = mviQ.mv[0]; if (!mviQ.predFlag[0]) { mvQ0.x=mvQ0.y=0; }
++-              MotionVector mvQ1 = mviQ.mv[1]; if (!mviQ.predFlag[1]) { mvQ1.x=mvQ1.y=0; }
++-
++-              int numMV_P = mviP.predFlag[0] + mviP.predFlag[1];
++-              int numMV_Q = mviQ.predFlag[0] + mviQ.predFlag[1];
++-
++-              if (numMV_P!=numMV_Q) {
++-                img->decctx->add_warning(DE265_WARNING_NUMMVP_NOT_EQUAL_TO_NUMMVQ, false);
++-                img->integrity = INTEGRITY_DECODING_ERRORS;
++-              }
++-
++-              // two different reference pictures or only one reference picture
++-              if (refPicP0 != refPicP1) {
++-
++-                if (refPicP0 == refPicQ0) {
++-                  if (abs_value(mvP0.x-mvQ0.x) >= 4 ||
++-                      abs_value(mvP0.y-mvQ0.y) >= 4 ||
++-                      abs_value(mvP1.x-mvQ1.x) >= 4 ||
++-                      abs_value(mvP1.y-mvQ1.y) >= 4) {
++-                    bS = 1;
++-                  }
++-                }
++-                else {
++-                  if (abs_value(mvP0.x-mvQ1.x) >= 4 ||
++-                      abs_value(mvP0.y-mvQ1.y) >= 4 ||
++-                      abs_value(mvP1.x-mvQ0.x) >= 4 ||
++-                      abs_value(mvP1.y-mvQ0.y) >= 4) {
++-                    bS = 1;
++-                  }
++-                }
++-              }
++-              else {
++-                assert(refPicQ0==refPicQ1);
++-
++-                if ((abs_value(mvP0.x-mvQ0.x) >= 4 ||
++-                     abs_value(mvP0.y-mvQ0.y) >= 4 ||
++-                     abs_value(mvP1.x-mvQ1.x) >= 4 ||
++-                     abs_value(mvP1.y-mvQ1.y) >= 4)
++-                    &&
++-                    (abs_value(mvP0.x-mvQ1.x) >= 4 ||
++-                     abs_value(mvP0.y-mvQ1.y) >= 4 ||
++-                     abs_value(mvP1.x-mvQ0.x) >= 4 ||
++-                     abs_value(mvP1.y-mvQ0.y) >= 4)) {
++-                  bS = 1;
++-                }
++-              }
++-            }
+++         if (shdrP && shdrQ) {
+++           int refPicP0 = mviP.predFlag[0] ? shdrP->RefPicList[0][ mviP.refIdx[0] ] : -1;
+++           int refPicP1 = mviP.predFlag[1] ? shdrP->RefPicList[1][ mviP.refIdx[1] ] : -1;
+++           int refPicQ0 = mviQ.predFlag[0] ? shdrQ->RefPicList[0][ mviQ.refIdx[0] ] : -1;
+++           int refPicQ1 = mviQ.predFlag[1] ? shdrQ->RefPicList[1][ mviQ.refIdx[1] ] : -1;
+++
+++           bool samePics = ((refPicP0==refPicQ0 && refPicP1==refPicQ1) ||
+++                            (refPicP0==refPicQ1 && refPicP1==refPicQ0));
+++
+++           if (!samePics) {
+++             bS = 1;
+++           }
+++           else {
+++             MotionVector mvP0 = mviP.mv[0]; if (!mviP.predFlag[0]) { mvP0.x=mvP0.y=0; }
+++             MotionVector mvP1 = mviP.mv[1]; if (!mviP.predFlag[1]) { mvP1.x=mvP1.y=0; }
+++             MotionVector mvQ0 = mviQ.mv[0]; if (!mviQ.predFlag[0]) { mvQ0.x=mvQ0.y=0; }
+++             MotionVector mvQ1 = mviQ.mv[1]; if (!mviQ.predFlag[1]) { mvQ1.x=mvQ1.y=0; }
+++
+++             int numMV_P = mviP.predFlag[0] + mviP.predFlag[1];
+++             int numMV_Q = mviQ.predFlag[0] + mviQ.predFlag[1];
+++
+++             if (numMV_P!=numMV_Q) {
+++               img->decctx->add_warning(DE265_WARNING_NUMMVP_NOT_EQUAL_TO_NUMMVQ, false);
+++               img->integrity = INTEGRITY_DECODING_ERRORS;
+++             }
+++
+++             // two different reference pictures or only one reference picture
+++             if (refPicP0 != refPicP1) {
+++
+++               if (refPicP0 == refPicQ0) {
+++                 if (abs_value(mvP0.x-mvQ0.x) >= 4 ||
+++                     abs_value(mvP0.y-mvQ0.y) >= 4 ||
+++                     abs_value(mvP1.x-mvQ1.x) >= 4 ||
+++                     abs_value(mvP1.y-mvQ1.y) >= 4) {
+++                   bS = 1;
+++                 }
+++               }
+++               else {
+++                 if (abs_value(mvP0.x-mvQ1.x) >= 4 ||
+++                     abs_value(mvP0.y-mvQ1.y) >= 4 ||
+++                     abs_value(mvP1.x-mvQ0.x) >= 4 ||
+++                     abs_value(mvP1.y-mvQ0.y) >= 4) {
+++                   bS = 1;
+++                 }
+++               }
+++             }
+++             else {
+++               assert(refPicQ0==refPicQ1);
+++
+++               if ((abs_value(mvP0.x-mvQ0.x) >= 4 ||
+++                    abs_value(mvP0.y-mvQ0.y) >= 4 ||
+++                    abs_value(mvP1.x-mvQ1.x) >= 4 ||
+++                    abs_value(mvP1.y-mvQ1.y) >= 4)
+++                   &&
+++                   (abs_value(mvP0.x-mvQ1.x) >= 4 ||
+++                    abs_value(mvP0.y-mvQ1.y) >= 4 ||
+++                    abs_value(mvP1.x-mvQ0.x) >= 4 ||
+++                    abs_value(mvP1.y-mvQ0.y) >= 4)) {
+++                 bS = 1;
+++               }
+++             }
+++           }
+++         }
+++         else {
+++           bS = 0; // if shdrP==NULL or shdrQ==NULL
+++         }
++ 
++             /*
++               printf("unimplemented deblocking code for CU at %d;%d\n",xDi,yDi);
++diff --git a/libde265/sao.cc b/libde265/sao.cc
++index f93fc02a..ed8676ea 100644
++--- a/libde265/sao.cc
+++++ b/libde265/sao.cc
++@@ -353,7 +353,10 @@ void apply_sample_adaptive_offset_sequential(de265_image* img)
++       for (int xCtb=0; xCtb<sps.PicWidthInCtbsY; xCtb++)
++         {
++           const slice_segment_header* shdr = img->get_SliceHeaderCtb(xCtb,yCtb);
++-          if (shdr==NULL) { return; }
+++          if (shdr==NULL) {
+++         delete[] inputCopy;
+++         return;
+++       }
++ 
++           if (cIdx==0 && shdr->slice_sao_luma_flag) {
++             apply_sao(img, xCtb,yCtb, shdr, 0, 1<<sps.Log2CtbSizeY, 1<<sps.Log2CtbSizeY,
++-- 
++2.34.1
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..eb053becc5889f08837f7bb055fda060052e45da
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,25 @@@
++From 697aa4f7c774abd6374596e6707a6f4f54265355 Mon Sep 17 00:00:00 2001
++From: Dirk Farin <dirk.farin@gmail.com>
++Date: Tue, 5 Apr 2022 19:27:04 +0200
++Subject: [PATCH] fix MC with HDR chroma, but SDR luma (#301)
++
++---
++ libde265/motion.cc | 2 +-
++ 1 file changed, 1 insertion(+), 1 deletion(-)
++
++diff --git a/libde265/motion.cc b/libde265/motion.cc
++index deae2400..8bbfbde0 100644
++--- a/libde265/motion.cc
+++++ b/libde265/motion.cc
++@@ -376,7 +376,7 @@ void generate_inter_prediction_samples(base_context* ctx,
++                   refPic->get_luma_stride(), nPbW,nPbH, bit_depth_L);
++         }
++ 
++-        if (img->high_bit_depth(0)) {
+++        if (img->high_bit_depth(1)) {
++           mc_chroma(ctx, sps, vi->mv[l].x, vi->mv[l].y, xP,yP,
++                     predSamplesC[0][l],nCS, (const uint16_t*)refPic->get_image_plane(1),
++                     refPic->get_chroma_stride(), nPbW/SubWidthC,nPbH/SubHeightC, bit_depth_C);
++-- 
++2.34.1
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e038678b7166bcb701ba60f73939966084807f89
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,58 @@@
++From 64d591a6c70737604ca3f5791736fc462cbe8a3c Mon Sep 17 00:00:00 2001
++From: Dirk Farin <dirk.farin@gmail.com>
++Date: Tue, 5 Apr 2022 17:53:43 +0200
++Subject: [PATCH] fix assertion when reading invalid scaling_list (#300)
++
++---
++ libde265/sps.cc | 15 +++++++++------
++ 1 file changed, 9 insertions(+), 6 deletions(-)
++
++Index: libde265-1.0.8/libde265/sps.cc
++===================================================================
++--- libde265-1.0.8.orig/libde265/sps.cc
+++++ libde265-1.0.8/libde265/sps.cc
++@@ -879,19 +879,23 @@ de265_error read_scaling_list(bitreader*
++     //int n = ((sizeId==3) ? 2 : 6);
++     uint8_t scaling_list[6][32*32];
++ 
+++    // Note: we use a different matrixId for the second matrix of size 3 (we use '3' instead of '1').
++     for (int matrixId=0 ; matrixId<6 ; matrixId += (sizeId==3 ? 3 : 1)) {
++       uint8_t* curr_scaling_list = scaling_list[matrixId];
++       int scaling_list_dc_coef;
++ 
++-      int canonicalMatrixId = matrixId;
++-      if (sizeId==3 && matrixId==1) { canonicalMatrixId=3; }
++-
++ 
++       //printf("----- matrix %d\n",matrixId);
++ 
++       char scaling_list_pred_mode_flag = get_bits(br,1);
++       if (!scaling_list_pred_mode_flag) {
++         int scaling_list_pred_matrix_id_delta = get_uvlc(br);
+++
+++     if (sizeId==3) {
+++       // adapt to our changed matrixId for size 3
+++       scaling_list_pred_matrix_id_delta *= 3;
+++     }
+++     
++         if (scaling_list_pred_matrix_id_delta == UVLC_ERROR ||
++             scaling_list_pred_matrix_id_delta > matrixId) {
++           return DE265_ERROR_CODED_PARAMETER_OUT_OF_RANGE;
++@@ -907,15 +911,14 @@ de265_error read_scaling_list(bitreader*
++             memcpy(curr_scaling_list, default_ScalingList_4x4, 16);
++           }
++           else {
++-            if (canonicalMatrixId<3)
+++            if (matrixId<3)
++               { memcpy(curr_scaling_list, default_ScalingList_8x8_intra,64); }
++             else
++               { memcpy(curr_scaling_list, default_ScalingList_8x8_inter,64); }
++           }
++         }
++         else {
++-          // TODO: CHECK: for sizeID=3 and the second matrix, should we have delta=1 or delta=3 ?
++-          if (sizeId==3) { assert(scaling_list_pred_matrix_id_delta==1); }
+++          if (sizeId==3) { assert(scaling_list_pred_matrix_id_delta==3); }
++ 
++           int mID = matrixId - scaling_list_pred_matrix_id_delta;
++ 
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..36660f1ddeffffcbddf5c267368d6e84d6cedbe8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,33 @@@
++From f538254e4658ef5ea4e233c2185dcbfd165e8911 Mon Sep 17 00:00:00 2001
++From: Dirk Farin <dirk.farin@gmail.com>
++Date: Tue, 5 Apr 2022 18:41:28 +0200
++Subject: [PATCH] fix streams where SPS image size changes without refreshing
++ PPS (#299)
++
++---
++ libde265/decctx.cc | 9 +++++++++
++ 1 file changed, 9 insertions(+)
++
++diff --git a/libde265/decctx.cc b/libde265/decctx.cc
++index edebb713..6701725f 100644
++--- a/libde265/decctx.cc
+++++ b/libde265/decctx.cc
++@@ -562,6 +562,15 @@ de265_error decoder_context::read_sps_NAL(bitreader& reader)
++ 
++   sps[ new_sps->seq_parameter_set_id ] = new_sps;
++ 
+++  // Remove the all PPS that referenced the old SPS because parameters may have changed and we do not want to
+++  // get the SPS and PPS parameters (e.g. image size) out of sync.
+++  
+++  for (auto& p : pps) {
+++    if (p && p->seq_parameter_set_id == new_sps->seq_parameter_set_id) {
+++      p = nullptr;
+++    }
+++  }
+++
++   return DE265_OK;
++ }
++ 
++-- 
++2.34.1
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7400363a8dcab11832f484e5fecc2cb1f066d71c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,25 @@@
++From e83f3798dd904aa579425c53020c67e03735138d Mon Sep 17 00:00:00 2001
++From: Dirk Farin <dirk.farin@gmail.com>
++Date: Tue, 5 Apr 2022 19:35:46 +0200
++Subject: [PATCH] fix check for valid PPS idx (#298)
++
++---
++ libde265/slice.cc | 2 +-
++ 1 file changed, 1 insertion(+), 1 deletion(-)
++
++diff --git a/libde265/slice.cc b/libde265/slice.cc
++index cca4d332..aacde0ce 100644
++--- a/libde265/slice.cc
+++++ b/libde265/slice.cc
++@@ -373,7 +373,7 @@ de265_error slice_segment_header::read(bitreader* br, decoder_context* ctx,
++   }
++ 
++   slice_pic_parameter_set_id = get_uvlc(br);
++-  if (slice_pic_parameter_set_id > DE265_MAX_PPS_SETS ||
+++  if (slice_pic_parameter_set_id >= DE265_MAX_PPS_SETS ||
++       slice_pic_parameter_set_id == UVLC_ERROR) {
++     ctx->add_warning(DE265_WARNING_NONEXISTING_PPS_REFERENCED, false);
++     return DE265_OK;
++-- 
++2.34.1
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..506b19d298987e5b0f1fb5efd5486346d3d281ff
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,41 @@@
++Description: Disable building of some internal tools that no longer link
++ because internal symbols are no longer exported.
++Author: Joachim Bauch <bauch@struktur.de>
++--- a/dec265/Makefile.am
+++++ b/dec265/Makefile.am
++@@ -1,5 +1,5 @@
++ 
++-bin_PROGRAMS = dec265 hdrcopy
+++bin_PROGRAMS = dec265
++ 
++ AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir)
++ 
++@@ -9,12 +9,6 @@
++ dec265_LDADD = ../libde265/libde265.la -lstdc++
++ dec265_SOURCES = dec265.cc
++ 
++-hdrcopy_DEPENDENCIES = ../libde265/libde265.la
++-hdrcopy_CXXFLAGS =
++-hdrcopy_LDFLAGS =
++-hdrcopy_LDADD = ../libde265/libde265.la -lstdc++
++-hdrcopy_SOURCES = hdrcopy.cc
++-
++ if HAVE_VIDEOGFX
++   dec265_CXXFLAGS += $(VIDEOGFX_CFLAGS)
++   dec265_LDFLAGS += $(VIDEOGFX_LIBS)
++--- a/Makefile.am
+++++ b/Makefile.am
++@@ -8,13 +8,6 @@
++ SUBDIRS+=dec265
++ endif
++ 
++-if ENABLE_ENCODER
++-SUBDIRS+=enc265
++-endif
++-
++-SUBDIRS+=tools
++-SUBDIRS+=acceleration-speed
++-
++ if ENABLE_SHERLOCK265
++ SUBDIRS+=sherlock265
++ endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..53b25ce2258b8b6a2496850c25e23daf4f477186
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,285 @@@
++Description: Only export symbols defined in the decoder API.
++ The encoder API is not final yet, so upstream exports all symbols to make
++ development easier. For packaging we only want to expose the public API.
++Author: Joachim Bauch <bauch@struktur.de>
++--- a/libde265/encoder/Makefile.am
+++++ b/libde265/encoder/Makefile.am
++@@ -12,6 +12,18 @@
++   encpicbuf.h encpicbuf.cc \
++   sop.h sop.cc
++ 
+++libde265_encoder_la_CFLAGS = \
+++  $(CFLAG_VISIBILITY) \
+++  -DLIBDE265_EXPORTS
+++libde265_encoder_la_CXXFLAGS += \
+++  $(CFLAG_VISIBILITY) \
+++  -DLIBDE265_EXPORTS
+++
+++if HAVE_VISIBILITY
+++ libde265_encoder_la_CFLAGS += -DHAVE_VISIBILITY
+++ libde265_encoder_la_CXXFLAGS += -DHAVE_VISIBILITY
+++endif
+++
++ SUBDIRS=algo
++ libde265_encoder_la_LIBADD = algo/libde265_encoder_algo.la
++ 
++--- a/libde265/encoder/algo/Makefile.am
+++++ b/libde265/encoder/algo/Makefile.am
++@@ -17,5 +17,13 @@
++   tb-rateestim.h tb-rateestim.cc \
++   pb-mv.h pb-mv.cc
++ 
+++libde265_encoder_algo_la_CXXFLAGS += \
+++  $(CFLAG_VISIBILITY) \
+++  -DLIBDE265_EXPORTS
+++
+++if HAVE_VISIBILITY
+++ libde265_encoder_algo_la_CXXFLAGS += -DHAVE_VISIBILITY
+++endif
+++
++ EXTRA_DIST = \
++   CMakeLists.txt
++--- a/configure.ac
+++++ b/configure.ac
++@@ -56,9 +56,7 @@
++ fi
++ changequote([,])dnl
++ 
++-dnl gl_VISIBILITY
++-dnl : In encoder branch, we still export all library symbols :
++-HAVE_VISIBILITY=0
+++gl_VISIBILITY
++ AM_CONDITIONAL([HAVE_VISIBILITY], [test "x$HAVE_VISIBILITY" != "x0"])
++ 
++ # Checks for header files.
++--- a/libde265/image-io.cc
+++++ b/libde265/image-io.cc
++@@ -186,7 +186,7 @@
++ }
++ 
++ 
++-LIBDE265_API PacketSink_File::~PacketSink_File()
+++PacketSink_File::~PacketSink_File()
++ {
++   if (mFH) {
++     fclose(mFH);
++@@ -194,7 +194,7 @@
++ }
++ 
++ 
++-LIBDE265_API void PacketSink_File::set_filename(const char* filename)
+++void PacketSink_File::set_filename(const char* filename)
++ {
++   assert(mFH==NULL);
++ 
++@@ -202,7 +202,7 @@
++ }
++ 
++ 
++-LIBDE265_API void PacketSink_File::send_packet(const uint8_t* data, int n)
+++void PacketSink_File::send_packet(const uint8_t* data, int n)
++ {
++   uint8_t startCode[3];
++   startCode[0] = 0;
++--- a/libde265/image-io.h
+++++ b/libde265/image-io.h
++@@ -30,17 +30,17 @@
++ class ImageSource
++ {
++  public:
++-  LIBDE265_API ImageSource();
++-  virtual LIBDE265_API ~ImageSource() { }
+++  ImageSource();
+++  virtual ~ImageSource() { }
++ 
++   //enum ImageStatus { Available, Waiting, EndOfVideo };
++ 
++   //virtual ImageStatus  get_status() = 0;
++-  virtual LIBDE265_API de265_image* get_image(bool block=true) = 0;
++-  virtual LIBDE265_API void skip_frames(int n) = 0;
+++  virtual de265_image* get_image(bool block=true) = 0;
+++  virtual void skip_frames(int n) = 0;
++ 
++-  virtual LIBDE265_API int get_width() const = 0;
++-  virtual LIBDE265_API int get_height() const = 0;
+++  virtual int get_width() const = 0;
+++  virtual int get_height() const = 0;
++ };
++ 
++ 
++@@ -48,17 +48,17 @@
++ class ImageSource_YUV : public ImageSource
++ {
++  public:
++-  LIBDE265_API ImageSource_YUV();
++-  virtual LIBDE265_API ~ImageSource_YUV();
+++  ImageSource_YUV();
+++  virtual ~ImageSource_YUV();
++ 
++-  bool LIBDE265_API set_input_file(const char* filename, int w,int h);
+++  bool set_input_file(const char* filename, int w,int h);
++ 
++   //virtual ImageStatus  get_status();
++-  virtual LIBDE265_API de265_image* get_image(bool block=true);
++-  virtual LIBDE265_API void skip_frames(int n);
+++  virtual de265_image* get_image(bool block=true);
+++  virtual void skip_frames(int n);
++ 
++-  virtual LIBDE265_API int get_width() const { return width; }
++-  virtual LIBDE265_API int get_height() const { return height; }
+++  virtual int get_width() const { return width; }
+++  virtual int get_height() const { return height; }
++ 
++  private:
++   FILE* mFH;
++@@ -74,20 +74,20 @@
++ class ImageSink
++ {
++  public:
++-  virtual LIBDE265_API ~ImageSink() { }
+++  virtual ~ImageSink() { }
++ 
++-  virtual LIBDE265_API void send_image(const de265_image* img) = 0;
+++  virtual void send_image(const de265_image* img) = 0;
++ };
++ 
++ class ImageSink_YUV : public ImageSink
++ {
++  public:
++- LIBDE265_API ImageSink_YUV() : mFH(NULL) { }
++-  LIBDE265_API ~ImageSink_YUV();
+++  ImageSink_YUV() : mFH(NULL) { }
+++  ~ImageSink_YUV();
++ 
++-  bool LIBDE265_API set_filename(const char* filename);
+++  bool set_filename(const char* filename);
++ 
++-  virtual LIBDE265_API void send_image(const de265_image* img);
+++  virtual void send_image(const de265_image* img);
++ 
++  private:
++   FILE* mFH;
++@@ -98,21 +98,21 @@
++ class PacketSink
++ {
++  public:
++-  virtual LIBDE265_API ~PacketSink() { }
+++  virtual ~PacketSink() { }
++ 
++-  virtual LIBDE265_API void send_packet(const uint8_t* data, int n) = 0;
+++  virtual void send_packet(const uint8_t* data, int n) = 0;
++ };
++ 
++ 
++ class PacketSink_File : public PacketSink
++ {
++  public:
++-  LIBDE265_API PacketSink_File();
++-  virtual LIBDE265_API ~PacketSink_File();
+++  PacketSink_File();
+++  virtual ~PacketSink_File();
++ 
++-  LIBDE265_API void set_filename(const char* filename);
+++  void set_filename(const char* filename);
++ 
++-  virtual LIBDE265_API void send_packet(const uint8_t* data, int n);
+++  virtual void send_packet(const uint8_t* data, int n);
++ 
++  private:
++   FILE* mFH;
++--- a/libde265/configparam.h
+++++ b/libde265/configparam.h
++@@ -95,7 +95,7 @@
++   bool hasLongOption() const { return true; } //mLongOption!=NULL; }
++   std::string getLongOption() const { return mLongOption ? std::string(mLongOption) : get_name(); }
++ 
++-  virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx) { return false; }
+++  virtual bool processCmdLineArguments(char** argv, int* argc, int idx) { return false; }
++ 
++ 
++ 
++@@ -132,7 +132,7 @@
++   virtual std::string get_default_string() const { return default_value ? "true":"false"; }
++ 
++   virtual std::string getTypeDescr() const { return "(boolean)"; }
++-  virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx) { set(true); return true; }
+++  virtual bool processCmdLineArguments(char** argv, int* argc, int idx) { set(true); return true; }
++ 
++   bool set(bool v) { value_set=true; value=v; return true; }
++ 
++@@ -162,10 +162,10 @@
++   virtual bool has_default() const { return default_set; }
++ 
++   void set_default(std::string v) { default_value=v; default_set=true; }
++-  virtual LIBDE265_API std::string get_default_string() const { return default_value; }
+++  virtual std::string get_default_string() const { return default_value; }
++ 
++-  virtual LIBDE265_API std::string getTypeDescr() const { return "(string)"; }
++-  virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx);
+++  virtual std::string getTypeDescr() const { return "(string)"; }
+++  virtual bool processCmdLineArguments(char** argv, int* argc, int idx);
++ 
++   bool set(std::string v) { value_set=true; value=v; return true; }
++ 
++@@ -201,10 +201,10 @@
++   virtual bool has_default() const { return default_set; }
++ 
++   void set_default(int v) { default_value=v; default_set=true; }
++-  virtual LIBDE265_API std::string get_default_string() const;
+++  virtual std::string get_default_string() const;
++ 
++-  virtual LIBDE265_API std::string getTypeDescr() const;
++-  virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx);
+++  virtual std::string getTypeDescr() const;
+++  virtual bool processCmdLineArguments(char** argv, int* argc, int idx);
++ 
++   bool set(int v) {
++     if (is_valid(v)) { value_set=true; value=v; return true; }
++@@ -239,7 +239,7 @@
++   virtual std::vector<std::string> get_choice_names() const = 0;
++ 
++   virtual std::string getTypeDescr() const;
++-  virtual LIBDE265_API bool processCmdLineArguments(char** argv, int* argc, int idx);
+++  virtual bool processCmdLineArguments(char** argv, int* argc, int idx);
++ 
++   const char** get_choices_string_table() const;
++ 
++@@ -368,10 +368,10 @@
++  config_parameters() : param_string_table(NULL) { }
++   ~config_parameters() { delete[] param_string_table; }
++ 
++-  void LIBDE265_API add_option(option_base* o);
+++  void add_option(option_base* o);
++ 
++-  void LIBDE265_API print_params() const;
++-  bool LIBDE265_API parse_command_line_params(int* argc, char** argv, int* first_idx=NULL,
+++  void print_params() const;
+++  bool parse_command_line_params(int* argc, char** argv, int* first_idx=NULL,
++                                  bool ignore_unknown_options=false);
++ 
++ 
++--- a/libde265/quality.h
+++++ b/libde265/quality.h
++@@ -26,11 +26,11 @@
++ #include <libde265/image.h>
++ 
++ 
++-LIBDE265_API uint32_t SSD(const uint8_t* img, int imgStride,
+++uint32_t SSD(const uint8_t* img, int imgStride,
++                           const uint8_t* ref, int refStride,
++                           int width, int height);
++ 
++-LIBDE265_API uint32_t SAD(const uint8_t* img, int imgStride,
+++uint32_t SAD(const uint8_t* img, int imgStride,
++                           const uint8_t* ref, int refStride,
++                           int width, int height);
++ 
++@@ -41,7 +41,7 @@
++ LIBDE265_API double PSNR(double mse);
++ 
++ 
++-LIBDE265_API uint32_t compute_distortion_ssd(const de265_image* img1, const de265_image* img2,
+++uint32_t compute_distortion_ssd(const de265_image* img1, const de265_image* img2,
++                                              int x0, int y0, int log2size, int cIdx);
++ 
++ #endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a2f7c73932c054cc45aee259ddc65e08e4c3bf65
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,9 @@@
++only_export_decoder_api.patch
++disable_tools.patch
++0001-fill-32x32-scaling-matrices.patch
++0001-CVE-2022-1253.patch
++0002-CVE-2021-36411.patch
++0003-CVE-2021-36410.patch
++0004-CVE-2021-36409.patch
++0005-CVE-2021-36408.patch
++0006-CVE-2021-35452.patch
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..56a92e79459a9c5583167ec6043b429f94179531
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,15 @@@
++#!/usr/bin/make -f
++#export DH_VERBOSE=1
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++
++%:
++      dh $@
++
++override_dh_auto_install:
++      dh_auto_install
++      cd $(CURDIR)/debian/tmp/usr/bin/ && mv dec265 libde265-dec265
++      if [ -e "$(CURDIR)/debian/tmp/usr/bin/sherlock265" ]; then \
++              cd $(CURDIR)/debian/tmp/usr/bin/ && mv sherlock265 \
++                      libde265-sherlock265; \
++      fi
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..655268446a59502cd36ab8667365884d4d5be0a4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++Bug-Database: https://github.com/strukturag/libde265/issues
++Repository: https://github.com/strukturag/libde265.git
++Repository-Browse: https://github.com/strukturag/libde265
++Bug-Submit: https://github.com/strukturag/libde265/issues/new
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1f72711afbd084060f75206d25a711fafe5ed420
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++version=3
++opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/libde265-$1\.tar\.gz/,\
++downloadurlmangle=s/.+\/v?(\d\S*)\.tar\.gz/https:\/\/github\.com\/strukturag\/libde265\/releases\/download\/v$1\/libde265-$1\.tar\.gz/ \
++  https://github.com/strukturag/libde265/tags .*/v?(\d\S*)\.tar\.gz