From 673acf253103b4f3858c646ee727187cddca3d8d Mon Sep 17 00:00:00 2001 From: Clement Champetier Date: Tue, 22 Dec 2015 15:07:39 +0100 Subject: [PATCH 1/2] ICodec: fixed how to close the AVCodecContext if it's allocated outside --- src/AvTranscoder/codec/ICodec.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/AvTranscoder/codec/ICodec.cpp b/src/AvTranscoder/codec/ICodec.cpp index e3ffc407..98d2dba1 100644 --- a/src/AvTranscoder/codec/ICodec.cpp +++ b/src/AvTranscoder/codec/ICodec.cpp @@ -43,12 +43,13 @@ ICodec::ICodec( const ECodecType type, AVCodecContext& avCodecContext ) ICodec::~ICodec() { - if( ! _isCodecContextAllocated ) - return; + avcodec_close(_avCodecContext); + + if(!_isCodecContextAllocated) + return; - avcodec_close( _avCodecContext ); - av_free( _avCodecContext ); - _avCodecContext = NULL; + av_free(_avCodecContext); + _avCodecContext = NULL; } void ICodec::openCodec() From 52a672ab27aa3b50b116c9a750dfc3d6f4d25d8a Mon Sep 17 00:00:00 2001 From: Clement Champetier Date: Tue, 22 Dec 2015 15:08:11 +0100 Subject: [PATCH 2/2] Up to v0.6.2 --- src/AvTranscoder/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AvTranscoder/common.hpp b/src/AvTranscoder/common.hpp index 8b13b9c7..1f11f277 100644 --- a/src/AvTranscoder/common.hpp +++ b/src/AvTranscoder/common.hpp @@ -3,7 +3,7 @@ #define AVTRANSCODER_VERSION_MAJOR 0 #define AVTRANSCODER_VERSION_MINOR 6 -#define AVTRANSCODER_VERSION_MICRO 1 +#define AVTRANSCODER_VERSION_MICRO 2 #include pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy