based on a patch by Luca Abeni < lucabe72 #@# email #.# it >
Originally committed as revision 4871 to svn://svn.ffmpeg.org/ffmpeg/trunk
}
return (s2 << 16) | s1;
}
+#ifdef CONFIG_MUXERS
typedef struct CRCState {
uint32_t crcval;
av_register_output_format(&framecrc_format);
return 0;
}
+#endif /* CONFIG_MUXERS */
return 0;
}
+#ifdef CONFIG_MUXERS
static int dv_write_header(AVFormatContext *s)
{
s->priv_data = dv_init_mux(s);
dv_delete_mux((DVMuxContext *)s->priv_data);
return 0;
}
+#endif /* CONFIG_MUXERS */
static AVInputFormat dv_iformat = {
"dv",
.extensions = "dv,dif",
};
+#ifdef CONFIG_MUXERS
static AVOutputFormat dv_oformat = {
"dv",
"DV video format",
dv_write_packet,
dv_write_trailer,
};
+#endif
int ff_dv_init(void)
{
av_register_input_format(&dv_iformat);
+#ifdef CONFIG_MUXERS
av_register_output_format(&dv_oformat);
+#endif
return 0;
}
return 0;
}
+#ifdef CONFIG_MUXERS
/******************************************************/
/* image output */
return 0;
}
+#endif /* CONFIG_MUXERS */
+
/* input */
static AVInputFormat image2_iformat = {
};
+#ifdef CONFIG_MUXERS
/* output */
static AVOutputFormat image2_oformat = {
img_write_packet,
img_write_trailer,
};
+#endif /* CONFIG_MUXERS */
int img2_init(void)
{
av_register_input_format(&image2_iformat);
- av_register_output_format(&image2_oformat);
-
av_register_input_format(&image2pipe_iformat);
+
+#ifdef CONFIG_MUXERS
+ av_register_output_format(&image2_oformat);
av_register_output_format(&image2pipe_oformat);
+#endif
return 0;
}