1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

avformat/rawdec: Make ff_raw_data_read_header() static

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-06 13:59:26 +02:00
parent 49916dafb9
commit cd3d7b0f8f
2 changed files with 2 additions and 4 deletions

View File

@ -102,7 +102,7 @@ int ff_raw_subtitle_read_header(AVFormatContext *s)
return 0; return 0;
} }
int ff_raw_data_read_header(AVFormatContext *s) static int raw_data_read_header(AVFormatContext *s)
{ {
AVStream *st = avformat_new_stream(s, NULL); AVStream *st = avformat_new_stream(s, NULL);
if (!st) if (!st)
@ -148,7 +148,7 @@ const AVClass ff_raw_demuxer_class = {
const AVInputFormat ff_data_demuxer = { const AVInputFormat ff_data_demuxer = {
.name = "data", .name = "data",
.long_name = NULL_IF_CONFIG_SMALL("raw data"), .long_name = NULL_IF_CONFIG_SMALL("raw data"),
.read_header = ff_raw_data_read_header, .read_header = raw_data_read_header,
.read_packet = ff_raw_read_partial_packet, .read_packet = ff_raw_read_partial_packet,
.raw_codec_id = AV_CODEC_ID_NONE, .raw_codec_id = AV_CODEC_ID_NONE,
.flags = AVFMT_NOTIMESTAMPS, .flags = AVFMT_NOTIMESTAMPS,

View File

@ -49,8 +49,6 @@ int ff_raw_video_read_header(AVFormatContext *s);
int ff_raw_subtitle_read_header(AVFormatContext *s); int ff_raw_subtitle_read_header(AVFormatContext *s);
int ff_raw_data_read_header(AVFormatContext *s);
#define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)\ #define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)\
const AVInputFormat ff_ ## shortname ## _demuxer = {\ const AVInputFormat ff_ ## shortname ## _demuxer = {\
.name = #shortname,\ .name = #shortname,\