[FFmpeg-cvslog] r10513 - in trunk/libavformat: mpegenc.c mpegts.c riff.c thp.c utils.c wv.c

aurel subversion
Mon Sep 17 01:00:44 CEST 2007


Author: aurel
Date: Mon Sep 17 01:00:44 2007
New Revision: 10513

Log:
loosen dependencies over allformats.h

Modified:
   trunk/libavformat/mpegenc.c
   trunk/libavformat/mpegts.c
   trunk/libavformat/riff.c
   trunk/libavformat/thp.c
   trunk/libavformat/utils.c
   trunk/libavformat/wv.c

Modified: trunk/libavformat/mpegenc.c
==============================================================================
--- trunk/libavformat/mpegenc.c	(original)
+++ trunk/libavformat/mpegenc.c	Mon Sep 17 01:00:44 2007
@@ -20,7 +20,6 @@
  */
 
 #include "avformat.h"
-#include "allformats.h"
 #include "bitstream.h"
 #include "fifo.h"
 #include "mpeg.h"
@@ -77,6 +76,11 @@ typedef struct {
 
 } MpegMuxContext;
 
+extern AVOutputFormat mpeg1vcd_muxer;
+extern AVOutputFormat mpeg2dvd_muxer;
+extern AVOutputFormat mpeg2svcd_muxer;
+extern AVOutputFormat mpeg2vob_muxer;
+
 static int put_pack_header(AVFormatContext *ctx,
                            uint8_t *buf, int64_t timestamp)
 {

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	(original)
+++ trunk/libavformat/mpegts.c	Mon Sep 17 01:00:44 2007
@@ -21,7 +21,6 @@
 #include "avformat.h"
 #include "crc.h"
 #include "mpegts.h"
-#include "allformats.h"
 
 //#define DEBUG_SI
 //#define DEBUG_SEEK
@@ -145,6 +144,8 @@ struct PESContext {
     uint8_t header[MAX_PES_HEADER_SIZE];
 };
 
+extern AVInputFormat mpegts_demuxer;
+
 /**
  *  Assembles PES packets out of TS packets, and then calls the "section_cb"
  *  function when they are complete.

Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c	(original)
+++ trunk/libavformat/riff.c	Mon Sep 17 01:00:44 2007
@@ -22,7 +22,6 @@
 #include "avformat.h"
 #include "avcodec.h"
 #include "riff.h"
-#include "allformats.h" // for asf_muxer
 
 /* Note: when encoding, the first matching tag is used, so order is
    important if multiple tags possible for a given codec. */

Modified: trunk/libavformat/thp.c
==============================================================================
--- trunk/libavformat/thp.c	(original)
+++ trunk/libavformat/thp.c	Mon Sep 17 01:00:44 2007
@@ -21,7 +21,6 @@
 
 
 #include "avformat.h"
-#include "allformats.h"
 
 typedef struct ThpDemuxContext {
     int              version;

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Mon Sep 17 01:00:44 2007
@@ -19,7 +19,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
-#include "allformats.h"
 #include "opt.h"
 #include "avstring.h"
 #include "riff.h"
@@ -468,7 +467,7 @@ int av_open_input_file(AVFormatContext *
 
     /* XXX: suppress this hack for redirectors */
 #ifdef CONFIG_REDIR_DEMUXER
-    if (fmt == &redir_demuxer) {
+    if (!strcmp(fmt->name, "redir")) {
         int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f);
         err = redir_open(ic_ptr, pb);
         url_fclose(pb);

Modified: trunk/libavformat/wv.c
==============================================================================
--- trunk/libavformat/wv.c	(original)
+++ trunk/libavformat/wv.c	Mon Sep 17 01:00:44 2007
@@ -20,7 +20,6 @@
  */
 
 #include "avformat.h"
-#include "allformats.h"
 #include "bswap.h"
 
 // specs say that maximum block size is 1Mb




More information about the ffmpeg-cvslog mailing list