Commit 07cee876 authored by diego's avatar diego

Properly separate native and libnut NUT (de)muxers.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7891 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8d2a24a8
...@@ -562,7 +562,8 @@ audio_muxer_deps_any="audio_oss audio_beos" ...@@ -562,7 +562,8 @@ audio_muxer_deps_any="audio_oss audio_beos"
dc1394_demuxer_deps="dc1394" dc1394_demuxer_deps="dc1394"
dv1394_demuxer_deps="dv1394" dv1394_demuxer_deps="dv1394"
gxf_muxer_deps="gpl" gxf_muxer_deps="gpl"
nut_muxer_deps="libnut" libnut_demuxer_deps="libnut"
libnut_muxer_deps="libnut"
ogg_muxer_deps="libogg" ogg_muxer_deps="libogg"
redir_demuxer_deps="network" redir_demuxer_deps="network"
rtp_muxer_deps="network" rtp_muxer_deps="network"
......
...@@ -165,13 +165,11 @@ OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o mpegts.o base64.o rtp_h264.o ...@@ -165,13 +165,11 @@ OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o mpegts.o base64.o rtp_h264.o
endif endif
endif endif
ifeq ($(CONFIG_LIBNUT),yes) OBJS-$(CONFIG_LIBNUT_DEMUXER) += libnut.o riff.o
OBJS-$(CONFIG_NUT_DEMUXER) += libnut.o riff.o OBJS-$(CONFIG_LIBNUT_MUXER) += libnut.o riff.o
OBJS-$(CONFIG_NUT_MUXER) += libnut.o riff.o
else
OBJS-$(CONFIG_NUT_DEMUXER) += nutdec.o riff.o OBJS-$(CONFIG_NUT_DEMUXER) += nutdec.o riff.o
#OBJS-$(CONFIG_NUT_MUXER) += nutenc.o riff.o #OBJS-$(CONFIG_NUT_MUXER) += nutenc.o riff.o
endif
NAME=avformat NAME=avformat
ifeq ($(BUILD_SHARED),yes) ifeq ($(BUILD_SHARED),yes)
......
...@@ -83,6 +83,8 @@ void av_register_all(void) ...@@ -83,6 +83,8 @@ void av_register_all(void)
REGISTER_MUXDEMUX(IMAGE2PIPE, image2pipe); REGISTER_MUXDEMUX(IMAGE2PIPE, image2pipe);
REGISTER_DEMUXER (INGENIENT, ingenient); REGISTER_DEMUXER (INGENIENT, ingenient);
REGISTER_DEMUXER (IPMOVIE, ipmovie); REGISTER_DEMUXER (IPMOVIE, ipmovie);
if (!ENABLE_NUT_DEMUXER) REGISTER_DEMUXER (LIBNUT, libnut);
REGISTER_MUXER (LIBNUT, libnut);
REGISTER_MUXDEMUX(M4V, m4v); REGISTER_MUXDEMUX(M4V, m4v);
REGISTER_DEMUXER (MATROSKA, matroska); REGISTER_DEMUXER (MATROSKA, matroska);
REGISTER_MUXDEMUX(MJPEG, mjpeg); REGISTER_MUXDEMUX(MJPEG, mjpeg);
...@@ -109,7 +111,6 @@ void av_register_all(void) ...@@ -109,7 +111,6 @@ void av_register_all(void)
REGISTER_DEMUXER (NSV, nsv); REGISTER_DEMUXER (NSV, nsv);
REGISTER_MUXER (NULL, null); REGISTER_MUXER (NULL, null);
REGISTER_DEMUXER (NUT, nut); REGISTER_DEMUXER (NUT, nut);
REGISTER_MUXER (NUT, nut);
REGISTER_DEMUXER (NUV, nuv); REGISTER_DEMUXER (NUV, nuv);
REGISTER_DEMUXER (OGG, ogg); REGISTER_DEMUXER (OGG, ogg);
REGISTER_MUXER (OGG, ogg); REGISTER_MUXER (OGG, ogg);
......
...@@ -69,6 +69,8 @@ extern AVInputFormat imagepipe_demuxer; ...@@ -69,6 +69,8 @@ extern AVInputFormat imagepipe_demuxer;
extern AVOutputFormat image_muxer; extern AVOutputFormat image_muxer;
extern AVOutputFormat imagepipe_muxer; extern AVOutputFormat imagepipe_muxer;
extern AVInputFormat ipmovie_demuxer; extern AVInputFormat ipmovie_demuxer;
extern AVInputFormat libnut_demuxer;
extern AVOutputFormat libnut_muxer;
extern AVInputFormat matroska_demuxer; extern AVInputFormat matroska_demuxer;
extern AVInputFormat mm_demuxer; extern AVInputFormat mm_demuxer;
extern AVInputFormat mmf_demuxer; extern AVInputFormat mmf_demuxer;
...@@ -96,7 +98,6 @@ extern AVInputFormat mtv_demuxer; ...@@ -96,7 +98,6 @@ extern AVInputFormat mtv_demuxer;
extern AVInputFormat mxf_demuxer; extern AVInputFormat mxf_demuxer;
extern AVInputFormat nsv_demuxer; extern AVInputFormat nsv_demuxer;
extern AVInputFormat nut_demuxer; extern AVInputFormat nut_demuxer;
extern AVOutputFormat nut_muxer;
extern AVInputFormat nuv_demuxer; extern AVInputFormat nuv_demuxer;
extern AVInputFormat ogg_demuxer; extern AVInputFormat ogg_demuxer;
extern AVOutputFormat ogg_muxer; extern AVOutputFormat ogg_muxer;
......
...@@ -123,7 +123,7 @@ static int nut_write_trailer(AVFormatContext * avf) { ...@@ -123,7 +123,7 @@ static int nut_write_trailer(AVFormatContext * avf) {
return 0; return 0;
} }
AVOutputFormat nut_muxer = { AVOutputFormat libnut_muxer = {
"nut", "nut",
"nut format", "nut format",
"video/x-nut", "video/x-nut",
...@@ -270,7 +270,7 @@ static int nut_read_close(AVFormatContext *s) { ...@@ -270,7 +270,7 @@ static int nut_read_close(AVFormatContext *s) {
return 0; return 0;
} }
AVInputFormat nut_demuxer = { AVInputFormat libnut_demuxer = {
"nut", "nut",
"nut format", "nut format",
sizeof(NUTContext), sizeof(NUTContext),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment