changeset 8026:f693666fbf9f libavcodec

Export svq1_packet_checksum() that is needed for svq3 watermarks, patch by baptiste that is based on reverse engineering work by chrono.
author michael
date Tue, 14 Oct 2008 20:34:31 +0000
parents 58a16a83f4e2
children 086563096ac5
files svq1dec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svq1dec.c	Tue Oct 14 20:30:11 2008 +0000
+++ b/svq1dec.c	Tue Oct 14 20:34:31 2008 +0000
@@ -540,7 +540,7 @@
   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 @@
     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);