summaryrefslogtreecommitdiff
path: root/libavcodec/s3tc.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-12 17:37:02 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-12 11:37:47 -0700
commit919f3554387e043bdfe10c6369356d1104882183 (patch)
tree9580cd2767ab1dccf6bad417c6205091dcd3beca /libavcodec/s3tc.h
parent85aded741e03b17b0cc5c588b1f5acbcb25d7996 (diff)
txd: port to bytestream2 API
Protects against overreads. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/s3tc.h')
-rw-r--r--libavcodec/s3tc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/s3tc.h b/libavcodec/s3tc.h
index 6e10f43843..d48fb41eb3 100644
--- a/libavcodec/s3tc.h
+++ b/libavcodec/s3tc.h
@@ -29,24 +29,24 @@
/**
* Decode DXT1 encoded data to RGB32
- * @param src source buffer, has to be aligned on a 4-byte boundary
+ * @param gb GetByteContext
* @param dst destination buffer
* @param w width of output image
* @param h height of output image
* @param stride line size of output image
*/
-void ff_decode_dxt1(const uint8_t *src, uint8_t *dst,
+void ff_decode_dxt1(GetByteContext *gb, uint8_t *dst,
const unsigned int w, const unsigned int h,
const unsigned int stride);
/**
* Decode DXT3 encoded data to RGB32
- * @param src source buffer, has to be aligned on a 4-byte boundary
+ * @param gb GetByteContext
* @param dst destination buffer
* @param w width of output image
* @param h height of output image
* @param stride line size of output image
*/
-void ff_decode_dxt3(const uint8_t *src, uint8_t *dst,
+void ff_decode_dxt3(GetByteContext *gb, uint8_t *dst,
const unsigned int w, const unsigned int h,
const unsigned int stride);