Mercurial > libavcodec.hg
comparison parser.c @ 4175:b3328ed50a5e libavcodec
make mpeg4video_split public as ff_mpeg4video_split
author | stefang |
---|---|
date | Sun, 12 Nov 2006 20:01:50 +0000 |
parents | 2205aefb22b7 |
children | 127d84a4c8e0 |
comparison
equal
deleted
inserted
replaced
4174:8535fcac43c1 | 4175:b3328ed50a5e |
---|---|
385 *poutbuf_size = buf_size; | 385 *poutbuf_size = buf_size; |
386 return next; | 386 return next; |
387 } | 387 } |
388 #endif /* CONFIG_CAVSVIDEO_PARSER */ | 388 #endif /* CONFIG_CAVSVIDEO_PARSER */ |
389 | 389 |
390 static int mpeg4video_split(AVCodecContext *avctx, | 390 int ff_mpeg4video_split(AVCodecContext *avctx, |
391 const uint8_t *buf, int buf_size) | 391 const uint8_t *buf, int buf_size) |
392 { | 392 { |
393 int i; | 393 int i; |
394 uint32_t state= -1; | 394 uint32_t state= -1; |
395 | 395 |
852 { CODEC_ID_MPEG4 }, | 852 { CODEC_ID_MPEG4 }, |
853 sizeof(ParseContext1), | 853 sizeof(ParseContext1), |
854 mpeg4video_parse_init, | 854 mpeg4video_parse_init, |
855 mpeg4video_parse, | 855 mpeg4video_parse, |
856 ff_parse1_close, | 856 ff_parse1_close, |
857 mpeg4video_split, | 857 ff_mpeg4video_split, |
858 }; | 858 }; |
859 #endif | 859 #endif |
860 #ifdef CONFIG_CAVSVIDEO_PARSER | 860 #ifdef CONFIG_CAVSVIDEO_PARSER |
861 AVCodecParser cavsvideo_parser = { | 861 AVCodecParser cavsvideo_parser = { |
862 { CODEC_ID_CAVS }, | 862 { CODEC_ID_CAVS }, |
863 sizeof(ParseContext1), | 863 sizeof(ParseContext1), |
864 NULL, | 864 NULL, |
865 cavsvideo_parse, | 865 cavsvideo_parse, |
866 ff_parse1_close, | 866 ff_parse1_close, |
867 mpeg4video_split, | 867 ff_mpeg4video_split, |
868 }; | 868 }; |
869 #endif | 869 #endif |
870 #ifdef CONFIG_MPEGAUDIO_PARSER | 870 #ifdef CONFIG_MPEGAUDIO_PARSER |
871 AVCodecParser mpegaudio_parser = { | 871 AVCodecParser mpegaudio_parser = { |
872 { CODEC_ID_MP2, CODEC_ID_MP3 }, | 872 { CODEC_ID_MP2, CODEC_ID_MP3 }, |