summaryrefslogtreecommitdiff
path: root/media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch')
-rw-r--r--media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch b/media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch
deleted file mode 100644
index dee0e3ca0f8f..000000000000
--- a/media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-https://github.com/alexkay/spek/commit/ee8bc49ed4a93a14a933ecb0eebfe424111f8413
-
-Index: spek-0.8.3/src/spek-audio.cc
-===================================================================
---- spek-0.8.3.orig/src/spek-audio.cc
-+++ spek-0.8.3/src/spek-audio.cc
-@@ -202,7 +202,7 @@ AudioFileImpl::AudioFileImpl(
- this->packet.data = nullptr;
- this->packet.size = 0;
- this->offset = 0;
-- this->frame = avcodec_alloc_frame();
-+ this->frame = av_frame_alloc();
- this->buffer_size = 0;
- this->buffer = nullptr;
- this->frames_per_interval = 0;
-@@ -218,7 +218,7 @@ AudioFileImpl::~AudioFileImpl()
- if (this->frame) {
- // TODO: Remove this check after Debian switches to libav 9.
- #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0)
-- avcodec_free_frame(&this->frame);
-+ av_frame_free(&this->frame);
- #else
- av_freep(&this->frame);
- #endif
-@@ -258,7 +258,7 @@ int AudioFileImpl::read()
-
- for (;;) {
- while (this->packet.size > 0) {
-- avcodec_get_frame_defaults(this->frame);
-+ av_frame_unref(this->frame);
- auto codec_context = this->format_context->streams[this->audio_stream]->codec;
- int got_frame = 0;
- int len = avcodec_decode_audio4(codec_context, this->frame, &got_frame, &this->packet);