summaryrefslogtreecommitdiff
path: root/libavcodec/h261.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-07-09 12:02:15 +0000
committerMåns Rullgård <mans@mansr.com>2006-07-09 12:02:15 +0000
commitaf9e7d181068a42272b290e48c43c343b492a349 (patch)
tree1bde651a37cc81e9dcb06406af4e098b588ac750 /libavcodec/h261.c
parent18769c0a7974a1ba7385eb030e4400046df5330d (diff)
--enable/disable parsers. Warning: some combinations are broken.
Originally committed as revision 5691 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h261.c')
-rw-r--r--libavcodec/h261.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h261.c b/libavcodec/h261.c
index a1a7f14f56..e56978e611 100644
--- a/libavcodec/h261.c
+++ b/libavcodec/h261.c
@@ -847,6 +847,7 @@ static int h261_decode_gob(H261Context *h){
return -1;
}
+#ifdef CONFIG_H261_PARSER
static int h261_find_frame_end(ParseContext *pc, AVCodecContext* avctx, const uint8_t *buf, int buf_size){
int vop_found, i, j;
uint32_t state;
@@ -900,6 +901,7 @@ static int h261_parse(AVCodecParserContext *s,
*poutbuf_size = buf_size;
return next;
}
+#endif
/**
* returns the number of bytes consumed for building the current frame
@@ -1039,6 +1041,7 @@ AVCodec h261_decoder = {
CODEC_CAP_DR1,
};
+#ifdef CONFIG_H261_PARSER
AVCodecParser h261_parser = {
{ CODEC_ID_H261 },
sizeof(ParseContext),
@@ -1046,3 +1049,4 @@ AVCodecParser h261_parser = {
h261_parse,
ff_parse_close,
};
+#endif