From 7a97dd84e312777c36cbf3442d85805a9ee5df5b Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sun, 5 Aug 2007 00:47:07 +0000 Subject: [PATCH] remove useless raw_write_header Originally committed as revision 9923 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/raw.c | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/libavformat/raw.c b/libavformat/raw.c index ffd8a43757..e3d460fafb 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -24,11 +24,6 @@ #ifdef CONFIG_MUXERS /* simple formats */ -static int raw_write_header(struct AVFormatContext *s) -{ - return 0; -} - static int flac_write_header(struct AVFormatContext *s) { static const uint8_t header[8] = { @@ -501,7 +496,7 @@ AVOutputFormat ac3_muxer = { 0, CODEC_ID_AC3, 0, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -568,7 +563,7 @@ AVOutputFormat h261_muxer = { 0, 0, CODEC_ID_H261, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -596,7 +591,7 @@ AVOutputFormat h263_muxer = { 0, 0, CODEC_ID_H263, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -624,7 +619,7 @@ AVOutputFormat m4v_muxer = { 0, CODEC_ID_NONE, CODEC_ID_MPEG4, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -652,7 +647,7 @@ AVOutputFormat h264_muxer = { 0, CODEC_ID_NONE, CODEC_ID_H264, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -679,7 +674,7 @@ AVOutputFormat mpeg1video_muxer = { 0, 0, CODEC_ID_MPEG1VIDEO, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -694,7 +689,7 @@ AVOutputFormat mpeg2video_muxer = { 0, 0, CODEC_ID_MPEG2VIDEO, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -735,7 +730,7 @@ AVOutputFormat mjpeg_muxer = { 0, 0, CODEC_ID_MJPEG, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -779,7 +774,7 @@ AVOutputFormat pcm_ ## name ## _muxer = {\ 0,\ codec,\ 0,\ - raw_write_header,\ + NULL,\ raw_write_packet,\ .flags= AVFMT_NOTIMESTAMPS,\ }; @@ -876,7 +871,7 @@ AVOutputFormat rawvideo_muxer = { 0, CODEC_ID_NONE, CODEC_ID_RAWVIDEO, - raw_write_header, + NULL, raw_write_packet, .flags= AVFMT_NOTIMESTAMPS, }; @@ -900,7 +895,7 @@ AVOutputFormat null_muxer = { CODEC_ID_PCM_S16LE, #endif CODEC_ID_RAWVIDEO, - raw_write_header, + NULL, null_write_packet, .flags = AVFMT_NOFILE | AVFMT_RAWPICTURE | AVFMT_NOTIMESTAMPS, };