[Ffmpeg-cvslog] r6118 - in trunk/libavcodec: bitstream.h dv.c flac.c
aurel
subversion
Mon Aug 28 20:46:01 CEST 2006
Author: aurel
Date: Mon Aug 28 20:46:01 2006
New Revision: 6118
Modified:
trunk/libavcodec/bitstream.h
trunk/libavcodec/dv.c
trunk/libavcodec/flac.c
Log:
force usage of ALT_BITSTREAM_READER where needed
Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h (original)
+++ trunk/libavcodec/bitstream.h Mon Aug 28 20:46:01 2006
@@ -8,6 +8,10 @@
#include "log.h"
+#if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)
+#define ALT_BITSTREAM_READER
+#endif
+
//#define ALT_BITSTREAM_WRITER
//#define ALIGNED_BITSTREAM_WRITER
#if !defined(LIBMPEG2_BITSTREAM_READER) && !defined(A32_BITSTREAM_READER) && !defined(ALT_BITSTREAM_READER)
Modified: trunk/libavcodec/dv.c
==============================================================================
--- trunk/libavcodec/dv.c (original)
+++ trunk/libavcodec/dv.c Mon Aug 28 20:46:01 2006
@@ -31,6 +31,7 @@
* @file dv.c
* DV codec.
*/
+#define ALT_BITSTREAM_READER
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
@@ -270,11 +271,6 @@
/* see dv_88_areas and dv_248_areas for details */
static const int mb_area_start[5] = { 1, 6, 21, 43, 64 };
-#ifndef ALT_BITSTREAM_READER
-#warning only works with ALT_BITSTREAM_READER
-static int re_index; //Hack to make it compile
-#endif
-
static inline int get_bits_left(GetBitContext *s)
{
return s->size_in_bits - get_bits_count(s);
Modified: trunk/libavcodec/flac.c
==============================================================================
--- trunk/libavcodec/flac.c (original)
+++ trunk/libavcodec/flac.c Mon Aug 28 20:46:01 2006
@@ -33,6 +33,7 @@
#include <limits.h>
+#define ALT_BITSTREAM_READER
#include "avcodec.h"
#include "bitstream.h"
#include "golomb.h"
More information about the ffmpeg-cvslog
mailing list