summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-30 01:33:12 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-04 17:41:34 +0200
commit2fd99aa2088b235676486589f11daf2cf50f3418 (patch)
treeced87501caf8d481c927d8644dd2cd7965bb8bef /libavcodec/mpeg12.h
parentef285d59acd3adce06bab8177e717940ba165d6a (diff)
downloadffmpeg-2fd99aa2088b235676486589f11daf2cf50f3418.tar.gz
avcodec/mpeg12: Move ff_mpeg1_clean_buffers decl to a new header
It allows to avoid including mpegvideo.h when including mpeg12.h. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg12.h')
-rw-r--r--libavcodec/mpeg12.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h
index b323728a33..4e2e67eae1 100644
--- a/libavcodec/mpeg12.h
+++ b/libavcodec/mpeg12.h
@@ -22,7 +22,7 @@
#ifndef AVCODEC_MPEG12_H
#define AVCODEC_MPEG12_H
-#include "mpegvideo.h"
+#include "libavutil/rational.h"
/* Start codes. */
#define SEQ_END_CODE 0x000001b7
@@ -34,9 +34,13 @@
#define EXT_START_CODE 0x000001b5
#define USER_START_CODE 0x000001b2
-void ff_mpeg1_clean_buffers(MpegEncContext *s);
+#include "version_major.h"
#if FF_API_FLAG_TRUNCATED
-int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size, AVCodecParserContext *s);
+#include <stdint.h>
+
+struct ParseContext;
+struct AVCodecParserContext;
+int ff_mpeg1_find_frame_end(struct ParseContext *pc, const uint8_t *buf, int buf_size, struct AVCodecParserContext *s);
#endif
void ff_mpeg12_find_best_frame_rate(AVRational frame_rate,