patch-plugins_ffmpeg_audio_c 578 B

12345678910111213141516171819
  1. $OpenBSD: patch-plugins_ffmpeg_audio_c,v 1.1 2014/04/06 20:24:01 brad Exp $
  2. Deal with newer FFmpeg API.
  3. --- plugins/ffmpeg/audio.c.orig Thu Mar 27 17:06:49 2014
  4. +++ plugins/ffmpeg/audio.c Thu Mar 27 17:08:00 2014
  5. @@ -45,6 +45,11 @@
  6. #define ENCODE_AUDIO 1
  7. #endif
  8. +#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
  9. +/* from libavcodec/avcodec.h dated Dec 23 2012 */
  10. +#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
  11. +#endif
  12. +
  13. /* The following code was ported from gmerlin_avdecoder (http://gmerlin.sourceforge.net) */
  14. /* MPEG Audio header parsing code */