0003-Enable-System-DL.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From cb41d7ce870dc034cc20a4771fcb2c28b1e30804 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Fri, 22 Jul 2016 11:11:44 +0200
  4. Subject: [PATCH 03/26] Enable System DL
  5. ---
  6. contrib/src/ffmpeg/patch-as-patch-can.patch | 20 ++++++++++++++++++++
  7. contrib/src/ffmpeg/rules.mak | 4 ++++
  8. 2 files changed, 24 insertions(+)
  9. create mode 100644 contrib/src/ffmpeg/patch-as-patch-can.patch
  10. diff --git a/contrib/src/ffmpeg/patch-as-patch-can.patch b/contrib/src/ffmpeg/patch-as-patch-can.patch
  11. new file mode 100644
  12. index 0000000000..2d60cf7140
  13. --- /dev/null
  14. +++ b/contrib/src/ffmpeg/patch-as-patch-can.patch
  15. @@ -0,0 +1,20 @@
  16. +Only in ffmpeg: .DS_Store
  17. +diff -ru ffmpeg/libavcodec/audiotoolboxdec.c ffmpeg-fix/libavcodec/audiotoolboxdec.c
  18. +--- ffmpeg/libavcodec/audiotoolboxdec.c 2016-05-09 11:44:29.000000000 +0200
  19. ++++ ffmpeg-fix/libavcodec/audiotoolboxdec.c 2016-05-09 14:01:04.000000000 +0200
  20. +@@ -345,7 +345,6 @@
  21. + avctx->bit_rate = bit_rate;
  22. + in_format.mSampleRate = avctx->sample_rate;
  23. + #endif
  24. +-#if CONFIG_AC3_AT_DECODER || CONFIG_EAC3_AT_DECODER
  25. + } else if (pkt && pkt->size >= 7 &&
  26. + (avctx->codec_id == AV_CODEC_ID_AC3 ||
  27. + avctx->codec_id == AV_CODEC_ID_EAC3)) {
  28. +@@ -358,7 +357,6 @@
  29. + in_format.mChannelsPerFrame = hdr.channels;
  30. + avctx->frame_size = hdr.num_blocks * 256;
  31. + avctx->bit_rate = hdr.bit_rate;
  32. +-#endif
  33. + } else {
  34. + in_format.mSampleRate = avctx->sample_rate ? avctx->sample_rate : 44100;
  35. + in_format.mChannelsPerFrame = avctx->channels ? avctx->channels : 1;
  36. diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak
  37. index 74ea2a5be6..0835f38b8d 100644
  38. --- a/contrib/src/ffmpeg/rules.mak
  39. +++ b/contrib/src/ffmpeg/rules.mak
  40. @@ -27,6 +27,9 @@ FFMPEGCONF = \
  41. --disable-encoder=vorbis \
  42. --disable-decoder=opus \
  43. --enable-libgsm \
  44. + --disable-decoder=mlp \
  45. + --disable-demuxer=mlp \
  46. + --disable-parser=mlp \
  47. --disable-debug \
  48. --disable-avdevice \
  49. --disable-devices \
  50. @@ -244,6 +247,7 @@ endif
  51. ifdef USE_LIBAV
  52. $(APPLY) $(SRC)/ffmpeg/libav_gsm.patch
  53. endif
  54. + $(APPLY) $(SRC)/ffmpeg/patch-as-patch-can.patch
  55. $(MOVE)
  56. .ffmpeg: ffmpeg
  57. --
  58. 2.20.1