diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index bbb76b6c95..b903e63fb4 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -92,7 +92,7 @@ fail: return ret; } -static int ff_raw_data_read_header(AVFormatContext *s) +int ff_raw_data_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h index 328a4fbd49..835b42db07 100644 --- a/libavformat/rawdec.h +++ b/libavformat/rawdec.h @@ -41,6 +41,8 @@ int ff_raw_audio_read_header(AVFormatContext *s); int ff_raw_video_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",\