@ -24,7 +24,6 @@
# include "avformat.h"
# include "libavutil/log.h"
# include "libavutil/opt.h"
typedef struct FFRawVideoDemuxerContext {
const AVClass * class ; /**< Class for private options. */
@ -39,7 +38,7 @@ typedef struct FFRawDemuxerContext {
int raw_packet_size ;
} FFRawDemuxerContext ;
extern const AVOption ff_rawvideo_options [ ] ;
extern const AVClass ff_rawvideo_demuxer_class ;
extern const AVClass ff_raw_demuxer_class ;
int ff_raw_read_partial_packet ( AVFormatContext * s , AVPacket * pkt ) ;
@ -52,16 +51,7 @@ int ff_raw_subtitle_read_header(AVFormatContext *s);
int ff_raw_data_read_header ( AVFormatContext * s ) ;
# define FF_RAWVIDEO_DEMUXER_CLASS(name)\
static const AVClass name # # _demuxer_class = { \
. class_name = # name " demuxer " , \
. item_name = av_default_item_name , \
. option = ff_rawvideo_options , \
. version = LIBAVUTIL_VERSION_INT , \
} ;
# define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)\
FF_RAWVIDEO_DEMUXER_CLASS ( shortname ) \
const AVInputFormat ff_ # # shortname # # _demuxer = { \
. name = # shortname , \
. long_name = NULL_IF_CONFIG_SMALL ( longname ) , \
@ -72,7 +62,7 @@ const AVInputFormat ff_ ## shortname ## _demuxer = {\
. flags = flag , \
. raw_codec_id = id , \
. priv_data_size = sizeof ( FFRawVideoDemuxerContext ) , \
. priv_class = & shortname # # _demuxer_class , \
. priv_class = & ff_rawvideo _demuxer_class, \
} ;
# define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)\