[FFmpeg-cvslog] r20761 - trunk/libavcodec/put_bits.h

reimar subversion
Mon Dec 7 22:06:52 CET 2009


Author: reimar
Date: Mon Dec  7 22:06:51 2009
New Revision: 20761

Log:
Make sure that compilation fails if functions like ff_put_string are used in code
that  selected a bitstream writer for which they do not work.

Modified:
   trunk/libavcodec/put_bits.h

Modified: trunk/libavcodec/put_bits.h
==============================================================================
--- trunk/libavcodec/put_bits.h	Mon Dec  7 17:26:37 2009	(r20760)
+++ trunk/libavcodec/put_bits.h	Mon Dec  7 22:06:51 2009	(r20761)
@@ -117,6 +117,11 @@ static inline void flush_put_bits(PutBit
 #endif
 }
 
+#if defined(ALT_BITSTREAM_WRITER) || defined(BITSTREAM_WRITER_LE)
+#define align_put_bits align_put_bits_unsupported_here
+#define ff_put_string ff_put_string_unsupported_here
+#define ff_copy_bits ff_copy_bits_unsupported_here
+#else
 /**
  * Pads the bitstream with zeros up to the next byte boundary.
  */
@@ -135,6 +140,7 @@ void ff_put_string(PutBitContext *pb, co
  * @param length the number of bits of src to copy
  */
 void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length);
+#endif
 
 /**
  * Writes up to 31 bits into a bitstream.



More information about the ffmpeg-cvslog mailing list