diff mbox series

[FFmpeg-devel,10/11] avformat/rawdec: Make ff_raw_data_read_header() static

Message ID AM7PR03MB66605380281568B70E300DE38FD29@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit cd3d7b0f8f772883a0ab50918548e991750d5851
Headers show
Series [FFmpeg-devel,01/11] avcodec/bsf: ff_list_bsf static | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 6, 2021, 12:43 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/rawdec.c | 4 ++--
 libavformat/rawdec.h | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 06406424c8..b7e5a2d966 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -102,7 +102,7 @@  int ff_raw_subtitle_read_header(AVFormatContext *s)
     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);
     if (!st)
@@ -148,7 +148,7 @@  const AVClass ff_raw_demuxer_class = {
 const AVInputFormat ff_data_demuxer = {
     .name           = "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,
     .raw_codec_id   = AV_CODEC_ID_NONE,
     .flags          = AVFMT_NOTIMESTAMPS,
diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h
index 18777db290..f843fe5a2e 100644
--- a/libavformat/rawdec.h
+++ b/libavformat/rawdec.h
@@ -49,8 +49,6 @@  int ff_raw_video_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)\
 const AVInputFormat ff_ ## shortname ## _demuxer = {\
     .name           = #shortname,\