#include "mpegtsmux_aac.h"
#include <string.h>
-GST_DEBUG_CATEGORY_EXTERN (mpegtsmux_debug);
#define GST_CAT_DEFAULT mpegtsmux_debug
GstBuffer *
#include "mpegtsmux_h264.h"
#include <string.h>
-GST_DEBUG_CATEGORY_EXTERN (mpegtsmux_debug);
#define GST_CAT_DEFAULT mpegtsmux_debug
#define SPS_PPS_PERIOD GST_SECOND
#include "tsmuxstream.h"
#include "crc.h"
+#define GST_CAT_DEFAULT mpegtsmux_debug
+
/* Maximum total data length for a PAT section is 1024 bytes, minus an
* 8 byte header, then the length of each program entry is 32 bits,
* then finally a 32 bit CRC. Thus the maximum number of programs in this mux
#define __TSMUX_COMMON_H__
#include <glib.h>
-
-#undef TS_DEBUG_ON
+#include <gst/gst.h>
G_BEGIN_DECLS
tsmux_put16 (pos, ((ts << 1) & 0xfffe) | 0x01);
}
-#ifdef TS_DEBUG_ON
-#define TS_DEBUG(...) g_print(__VA_ARGS__); g_print ("\n")
-#else
-#define TS_DEBUG(...)
-#endif
+GST_DEBUG_CATEGORY_EXTERN (mpegtsmux_debug);
+#define TS_DEBUG GST_DEBUG
G_END_DECLS
#include "tsmuxcommon.h"
#include "tsmuxstream.h"
+#define GST_CAT_DEFAULT mpegtsmux_debug
+
static guint8 tsmux_stream_pes_header_length (TsMuxStream * stream);
static void tsmux_stream_write_pes_header (TsMuxStream * stream, guint8 * data);
static void tsmux_stream_find_pts_dts_within (TsMuxStream * stream, guint bound,