Mercurial > libavcodec.hg
diff h264.c @ 3455:cc4b4ea83e29 libavcodec
--enable/disable parsers. Warning: some combinations are broken.
author | mru |
---|---|
date | Sun, 09 Jul 2006 12:02:15 +0000 |
parents | 584ff6431043 |
children | c08b46172204 |
line wrap: on
line diff
--- a/h264.c Sun Jul 09 10:33:49 2006 +0000 +++ b/h264.c Sun Jul 09 12:02:15 2006 +0000 @@ -7872,6 +7872,7 @@ return END_NOT_FOUND; } +#ifdef CONFIG_H264_PARSER static int h264_parse(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, @@ -7917,7 +7918,7 @@ } return 0; } - +#endif /* CONFIG_H264_PARSER */ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){ MpegEncContext * const s = &h->s; @@ -8488,6 +8489,7 @@ .flush= flush_dpb, }; +#ifdef CONFIG_H264_PARSER AVCodecParser h264_parser = { { CODEC_ID_H264 }, sizeof(H264Context), @@ -8496,5 +8498,6 @@ ff_parse_close, h264_split, }; +#endif #include "svq3.c"