comparison parser.c @ 3432:ab49baf4adad libavcodec

Fix compilation with --disable-decoders. patch by Emiliano Parasassi, millallo --at-- gmail --dot-- com
author diego
date Fri, 07 Jul 2006 11:08:58 +0000
parents b7826511f7b6
children cc4b4ea83e29
comparison
equal deleted inserted replaced
3431:ef69fc364d98 3432:ab49baf4adad
532 *poutbuf = (uint8_t *)buf; 532 *poutbuf = (uint8_t *)buf;
533 *poutbuf_size = buf_size; 533 *poutbuf_size = buf_size;
534 return next; 534 return next;
535 } 535 }
536 536
537 #ifdef CONFIG_CAVS_DECODER
537 static int cavsvideo_parse(AVCodecParserContext *s, 538 static int cavsvideo_parse(AVCodecParserContext *s,
538 AVCodecContext *avctx, 539 AVCodecContext *avctx,
539 uint8_t **poutbuf, int *poutbuf_size, 540 uint8_t **poutbuf, int *poutbuf_size,
540 const uint8_t *buf, int buf_size) 541 const uint8_t *buf, int buf_size)
541 { 542 {
555 } 556 }
556 *poutbuf = (uint8_t *)buf; 557 *poutbuf = (uint8_t *)buf;
557 *poutbuf_size = buf_size; 558 *poutbuf_size = buf_size;
558 return next; 559 return next;
559 } 560 }
561 #endif /* CONFIG_CAVS_DECODER */
560 562
561 static int mpeg4video_split(AVCodecContext *avctx, 563 static int mpeg4video_split(AVCodecContext *avctx,
562 const uint8_t *buf, int buf_size) 564 const uint8_t *buf, int buf_size)
563 { 565 {
564 int i; 566 int i;
1010 mpeg4video_parse, 1012 mpeg4video_parse,
1011 parse1_close, 1013 parse1_close,
1012 mpeg4video_split, 1014 mpeg4video_split,
1013 }; 1015 };
1014 1016
1017 #ifdef CONFIG_CAVS_DECODER
1015 AVCodecParser cavsvideo_parser = { 1018 AVCodecParser cavsvideo_parser = {
1016 { CODEC_ID_CAVS }, 1019 { CODEC_ID_CAVS },
1017 sizeof(ParseContext1), 1020 sizeof(ParseContext1),
1018 NULL, 1021 NULL,
1019 cavsvideo_parse, 1022 cavsvideo_parse,
1020 parse1_close, 1023 parse1_close,
1021 mpeg4video_split, 1024 mpeg4video_split,
1022 }; 1025 };
1026 #endif
1023 1027
1024 AVCodecParser mpegaudio_parser = { 1028 AVCodecParser mpegaudio_parser = {
1025 { CODEC_ID_MP2, CODEC_ID_MP3 }, 1029 { CODEC_ID_MP2, CODEC_ID_MP3 },
1026 sizeof(MpegAudioParseContext), 1030 sizeof(MpegAudioParseContext),
1027 mpegaudio_parse_init, 1031 mpegaudio_parse_init,