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

package info (click to toggle)
libquicktime 2%3A1.2.4-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,448 kB
  • sloc: ansic: 55,311; sh: 10,976; makefile: 470; sed: 16
file content (18 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: 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

--- 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 */