File: 20-ffmpeg-max-audio-frame-size.patch

package info (click to toggle)
libquicktime 2%3A1.2.4-17
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,832 kB
  • sloc: ansic: 55,312; sh: 10,976; makefile: 473; sed: 16
file content (26 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Date: Wed, 30 Aug 2023 15:19:30 +0200
Subject: Redefine AVCODEC_MAX_AUDIO_FRAME_SIZE removed in FFmpeg 2.0

Origin: upstream, https://sourceforge.net/p/libquicktime/git/ci/44662bf4f5e1364140f08b26126f097986475435
Bug-Debian: http://bugs.debian.org/739325
---
 plugins/ffmpeg/audio.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/ffmpeg/audio.c b/plugins/ffmpeg/audio.c
index bc8d750..62d1aa5 100644
--- a/plugins/ffmpeg/audio.c
+++ b/plugins/ffmpeg/audio.c
@@ -45,6 +45,11 @@
 #define ENCODE_AUDIO 1
 #endif
 
+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
+/* from libavcodec/avcodec.h dated Dec 23 2012 */
+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
+#endif
+
 /* The following code was ported from gmerlin_avdecoder (http://gmerlin.sourceforge.net) */
 
 /* MPEG Audio header parsing code */