spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 1ef950dcbf89dd8adf816009b54009f487828a45
parent 02e305dfc2323218de4b6f77ff07f6070a509178
Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Date:   Sun, 27 Mar 2016 14:19:42 -0700

Replace deprecated FFmpeg API

Diffstat:
Msrc/spek-audio.cc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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.