Mercurial > libavformat.hg
comparison ffm.c @ 905:dbc0145bbf11 libavformat
Add --disable-protocols option to configure to disable I/O protocol from
libavformat. Also fix build with --disable-muxers and --disable-ffserver.
patch by Gildas Bazin < gbazin **@** altern **.** org >
author | diego |
---|---|
date | Sat, 21 Jan 2006 18:36:32 +0000 |
parents | c1a07d63a66d |
children | d89d7ef290da |
comparison
equal
deleted
inserted
replaced
904:5d3dc3a6bbe7 | 905:dbc0145bbf11 |
---|---|
704 found: | 704 found: |
705 ffm_seek1(s, pos); | 705 ffm_seek1(s, pos); |
706 return 0; | 706 return 0; |
707 } | 707 } |
708 | 708 |
709 #ifdef CONFIG_FFSERVER | |
709 offset_t ffm_read_write_index(int fd) | 710 offset_t ffm_read_write_index(int fd) |
710 { | 711 { |
711 uint8_t buf[8]; | 712 uint8_t buf[8]; |
712 offset_t pos; | 713 offset_t pos; |
713 int i; | 714 int i; |
735 { | 736 { |
736 FFMContext *ffm = s->priv_data; | 737 FFMContext *ffm = s->priv_data; |
737 ffm->write_index = pos; | 738 ffm->write_index = pos; |
738 ffm->file_size = file_size; | 739 ffm->file_size = file_size; |
739 } | 740 } |
741 #endif // CONFIG_FFSERVER | |
740 | 742 |
741 static int ffm_read_close(AVFormatContext *s) | 743 static int ffm_read_close(AVFormatContext *s) |
742 { | 744 { |
743 AVStream *st; | 745 AVStream *st; |
744 int i; | 746 int i; |