diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/spek/files/spek-0.8.3-ffmpeg3.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/spek/files/spek-0.8.3-ffmpeg3.patch')
-rw-r--r-- | media-sound/spek/files/spek-0.8.3-ffmpeg3.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/media-sound/spek/files/spek-0.8.3-ffmpeg3.patch b/media-sound/spek/files/spek-0.8.3-ffmpeg3.patch new file mode 100644 index 000000000000..ad82a38c31c5 --- /dev/null +++ b/media-sound/spek/files/spek-0.8.3-ffmpeg3.patch @@ -0,0 +1,37 @@ +commit 1ef950dcbf89dd8adf816009b54009f487828a45 +Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> +Date: Sun Mar 27 14:19:42 2016 -0700 + + Replace deprecated FFmpeg API + +diff --git a/src/spek-audio.cc b/src/spek-audio.cc +index b7633bc..21ea7a4 100644 +--- a/src/spek-audio.cc ++++ b/src/spek-audio.cc +@@ -222,7 +222,7 @@ AudioFileImpl::~AudioFileImpl() + this->packet.data -= this->offset; + this->packet.size += this->offset; + this->offset = 0; +- av_free_packet(&this->packet); ++ av_packet_unref(&this->packet); + } + if (this->format_context) { + if (this->audio_stream >= 0) { +@@ -326,7 +326,7 @@ int AudioFileImpl::read() + this->packet.data -= this->offset; + this->packet.size += this->offset; + this->offset = 0; +- av_free_packet(&this->packet); ++ av_packet_unref(&this->packet); + } + + int res = 0; +@@ -334,7 +334,7 @@ int AudioFileImpl::read() + if (this->packet.stream_index == this->audio_stream) { + break; + } +- av_free_packet(&this->packet); ++ av_packet_unref(&this->packet); + } + if (res < 0) { + // End of file or error. |