comparison asf-enc.c @ 1169:d18cc9a1fd02 libavformat

allow individual selection of muxers and demuxers
author mru
date Mon, 10 Jul 2006 21:14:37 +0000
parents d89d7ef290da
children 6a5e58d2114b
comparison
equal deleted inserted replaced
1168:c894489e2abe 1169:d18cc9a1fd02
21 #include "asf.h" 21 #include "asf.h"
22 22
23 #undef NDEBUG 23 #undef NDEBUG
24 #include <assert.h> 24 #include <assert.h>
25 25
26 #ifdef CONFIG_MUXERS
27
28 26
29 #define ASF_INDEXED_INTERVAL 10000000 27 #define ASF_INDEXED_INTERVAL 10000000
30 #define ASF_INDEX_BLOCK 600 28 #define ASF_INDEX_BLOCK 600
31 29
32 #define ASF_PACKET_ERROR_CORRECTION_DATA_SIZE 0x2 30 #define ASF_PACKET_ERROR_CORRECTION_DATA_SIZE 0x2
821 put_flush_packet(&s->pb); 819 put_flush_packet(&s->pb);
822 av_free(asf->index_ptr); 820 av_free(asf->index_ptr);
823 return 0; 821 return 0;
824 } 822 }
825 823
824 #ifdef CONFIG_ASF_MUXER
826 AVOutputFormat asf_muxer = { 825 AVOutputFormat asf_muxer = {
827 "asf", 826 "asf",
828 "asf format", 827 "asf format",
829 "video/x-ms-asf", 828 "video/x-ms-asf",
830 "asf,wmv,wma", 829 "asf,wmv,wma",
838 asf_write_header, 837 asf_write_header,
839 asf_write_packet, 838 asf_write_packet,
840 asf_write_trailer, 839 asf_write_trailer,
841 .flags = AVFMT_GLOBALHEADER, 840 .flags = AVFMT_GLOBALHEADER,
842 }; 841 };
843 842 #endif
843
844 #ifdef CONFIG_ASF_STREAM_MUXER
844 AVOutputFormat asf_stream_muxer = { 845 AVOutputFormat asf_stream_muxer = {
845 "asf_stream", 846 "asf_stream",
846 "asf format", 847 "asf format",
847 "video/x-ms-asf", 848 "video/x-ms-asf",
848 "asf,wmv,wma", 849 "asf,wmv,wma",
856 asf_write_stream_header, 857 asf_write_stream_header,
857 asf_write_packet, 858 asf_write_packet,
858 asf_write_trailer, 859 asf_write_trailer,
859 .flags = AVFMT_GLOBALHEADER, 860 .flags = AVFMT_GLOBALHEADER,
860 }; 861 };
861 #endif //CONFIG_MUXERS 862 #endif //CONFIG_ASF_STREAM_MUXER