Mercurial > libavformat.hg
diff mpjpeg.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 | 0899bfe4105c |
line wrap: on
line diff
--- a/mpjpeg.c Mon Jul 10 12:10:10 2006 +0000 +++ b/mpjpeg.c Mon Jul 10 21:14:37 2006 +0000 @@ -22,7 +22,6 @@ #define BOUNDARY_TAG "ffserver" -#ifdef CONFIG_MUXERS static int mpjpeg_write_header(AVFormatContext *s) { uint8_t buf1[256]; @@ -52,7 +51,7 @@ return 0; } -static AVOutputFormat mpjpeg_muxer = { +AVOutputFormat mpjpeg_muxer = { "mpjpeg", "Mime multipart JPEG format", "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG, @@ -64,10 +63,3 @@ mpjpeg_write_packet, mpjpeg_write_trailer, }; - -int jpeg_init(void) -{ - av_register_output_format(&mpjpeg_muxer); - return 0; -} -#endif //CONFIG_MUXERS