changeset 10655:0a2d577dd2d8 libavcodec

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.
author reimar
date Mon, 07 Dec 2009 21:06:51 +0000
parents 2dbb341a14ba
children 34911596ffed
files put_bits.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/put_bits.h	Mon Dec 07 00:35:38 2009 +0000
+++ b/put_bits.h	Mon Dec 07 21:06:51 2009 +0000
@@ -117,6 +117,11 @@
 #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 @@
  * @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.