Commit cf8cfdaf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: remove AVCODEC_COMMON_MEMBERS

parent 8dc541c6
......@@ -49,7 +49,8 @@
*****************************************************************************/
struct decoder_sys_t
{
AVCODEC_COMMON_MEMBERS
AVCodecContext *p_context;
const AVCodec *p_codec;
/*
* Output properties
......
......@@ -42,15 +42,6 @@
#include "chroma.h"
#include "avcommon.h"
/*****************************************************************************
* decoder_sys_t: decoder descriptor
*****************************************************************************/
struct decoder_sys_t
{
/* Common part between video and audio decoder */
AVCODEC_COMMON_MEMBERS
};
/****************************************************************************
* Local prototypes
****************************************************************************/
......
......@@ -232,10 +232,6 @@ int ffmpeg_OpenCodec( decoder_t *p_dec, AVCodecContext *, const AVCodec * );
"main, low, ssr (not supported),ltp, hev1, hev2 (default: low). " \
"hev1 and hev2 are currently supported only with libfdk-aac enabled libavcodec" )
#define AVCODEC_COMMON_MEMBERS \
AVCodecContext *p_context; \
const AVCodec *p_codec;
#ifndef AV_VERSION_INT
# define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
#endif
......
......@@ -39,7 +39,8 @@
#include "avcodec.h"
struct decoder_sys_t {
AVCODEC_COMMON_MEMBERS
AVCodecContext *p_context;
const AVCodec *p_codec;
bool b_need_ephemer; /* Does the format need the ephemer flag (no end time set) */
};
......
......@@ -53,7 +53,8 @@
*****************************************************************************/
struct decoder_sys_t
{
AVCODEC_COMMON_MEMBERS
AVCodecContext *p_context;
const AVCodec *p_codec;
/* Video decoder specific part */
date_t pts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment