Skip to content

Commit 7cdb5d7

Browse files
committed
ICodec / CodecContext: fix include for av_free
For some FFmpeg versions, we need to include <libavutil/mem.h> to get av_free function.
1 parent 92bc4ee commit 7cdb5d7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/AvTranscoder/codec/ICodec.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "ICodec.hpp"
22

3+
extern "C" {
4+
#include <libavutil/mem.h>
5+
}
6+
37
#include <stdexcept>
48
#include <cassert>
59

src/AvTranscoder/codec/ICodec.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
#include <string>
77

8-
struct AVCodec;
9-
struct AVCodecContext;
10-
enum AVCodecID;
11-
128
namespace avtranscoder
139
{
1410

src/AvTranscoder/option/CodecContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
extern "C" {
44
#include <libavcodec/avcodec.h>
5+
#include <libavutil/mem.h>
56
}
67

78
namespace avtranscoder

0 commit comments

Comments
 (0)
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