aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.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/h263dec.c
parent18769c0a7974a1ba7385eb030e4400046df5330d (diff)
downloadffmpeg-af9e7d181068a42272b290e48c43c343b492a349.tar.gz
--enable/disable parsers. Warning: some combinations are broken.
Originally committed as revision 5691 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 1eba9db40a..73b050325e 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -391,6 +391,7 @@ static int h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_siz
return END_NOT_FOUND;
}
+#ifdef CONFIG_H263_PARSER
static int h263_parse(AVCodecParserContext *s,
AVCodecContext *avctx,
uint8_t **poutbuf, int *poutbuf_size,
@@ -411,6 +412,7 @@ static int h263_parse(AVCodecParserContext *s,
*poutbuf_size = buf_size;
return next;
}
+#endif
int ff_h263_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
@@ -887,6 +889,7 @@ AVCodec flv_decoder = {
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1
};
+#ifdef CONFIG_H263_PARSER
AVCodecParser h263_parser = {
{ CODEC_ID_H263 },
sizeof(ParseContext),
@@ -894,3 +897,4 @@ AVCodecParser h263_parser = {
h263_parse,
ff_parse_close,
};
+#endif