aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-10-14 20:34:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-10-14 20:34:31 +0000
commit795bb9dcb06aef5fe56239c102741e229c386959 (patch)
tree836639d7f9c008030d9701749b4b578a7ff3ad9e
parent1fdcdf8d87fab4fde89b9bf5f81bbf6e088e0950 (diff)
downloadffmpeg-795bb9dcb06aef5fe56239c102741e229c386959.tar.gz
Export svq1_packet_checksum() that is needed for svq3 watermarks,
patch by baptiste that is based on reverse engineering work by chrono. Originally committed as revision 15617 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/svq1dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index e693fb6795..8f399ab39d 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -540,7 +540,7 @@ static int svq1_decode_delta_block (MpegEncContext *s, GetBitContext *bitbuf,
return result;
}
-static uint16_t svq1_packet_checksum (const uint8_t *data, const int length, int value) {
+uint16_t ff_svq1_packet_checksum (const uint8_t *data, const int length, int value) {
int i;
for (i=0; i < length; i++) {
@@ -581,7 +581,7 @@ static int svq1_decode_frame_header (GetBitContext *bitbuf,MpegEncContext *s) {
if (s->f_code == 0x50 || s->f_code == 0x60) {
int csum = get_bits (bitbuf, 16);
- csum = svq1_packet_checksum (bitbuf->buffer, bitbuf->size_in_bits>>3, csum);
+ csum = ff_svq1_packet_checksum (bitbuf->buffer, bitbuf->size_in_bits>>3, csum);
// av_log(s->avctx, AV_LOG_INFO, "%s checksum (%02x) for packet data\n",
// (csum == 0) ? "correct" : "incorrect", csum);