[FFmpeg-cvslog] r15617 - trunk/libavcodec/svq1dec.c

michael subversion
Tue Oct 14 22:34:31 CEST 2008


Author: michael
Date: Tue Oct 14 22:34:31 2008
New Revision: 15617

Log:
Export svq1_packet_checksum() that is needed for svq3 watermarks,
patch by baptiste that is based on reverse engeneering work by chrono.


Modified:
   trunk/libavcodec/svq1dec.c

Modified: trunk/libavcodec/svq1dec.c
==============================================================================
--- trunk/libavcodec/svq1dec.c	(original)
+++ trunk/libavcodec/svq1dec.c	Tue Oct 14 22:34:31 2008
@@ -540,7 +540,7 @@ static int svq1_decode_delta_block (Mpeg
   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 (Get
     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);




More information about the ffmpeg-cvslog mailing list