[FFmpeg-cvslog] Move check_marker() from get_bits to mpeg4videodec
Alexandra Hájková
git at videolan.org
Wed Jun 22 19:57:50 CEST 2016
ffmpeg | branch: master | Alexandra Hájková <alexandra.khirnova at gmail.com> | Sat May 14 11:28:18 2016 +0200| [e4b38878da6b38ef5ca54ce14be985d6ae088834] | committer: Anton Khirnov
Move check_marker() from get_bits to mpeg4videodec
MPEG-4 is the only decoder which uses check_marker().
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e4b38878da6b38ef5ca54ce14be985d6ae088834
---
libavcodec/get_bits.h | 9 ---------
libavcodec/mpeg4videodec.c | 9 +++++++++
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index b8debb9..ce76511 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -364,15 +364,6 @@ static inline unsigned int show_bits_long(GetBitContext *s, int n)
}
}
-static inline int check_marker(GetBitContext *s, const char *msg)
-{
- int bit = get_bits1(s);
- if (!bit)
- av_log(NULL, AV_LOG_INFO, "Marker bit missing %s\n", msg);
-
- return bit;
-}
-
/**
* Initialize GetBitContext.
* @param buffer bitstream buffer, must be AV_INPUT_BUFFER_PADDING_SIZE bytes
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 40d281b..1c1a9c0 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -51,6 +51,15 @@ static const int mb_type_b_map[4] = {
MB_TYPE_L0 | MB_TYPE_16x16,
};
+static inline int check_marker(GetBitContext *s, const char *msg)
+{
+ int bit = get_bits1(s);
+ if (!bit)
+ av_log(NULL, AV_LOG_INFO, "Marker bit missing %s\n", msg);
+
+ return bit;
+}
+
/**
* Predict the ac.
* @param n block index (0-3 are luma, 4-5 are chroma)
More information about the ffmpeg-cvslog
mailing list