Author: ramiro
Date: Sun Aug  3 15:33:24 2008
New Revision: 2998

Log:
Use put_sbits() where appropriate.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c        (original)
+++ mlp/mlpenc.c        Sun Aug  3 15:33:24 2008
@@ -400,7 +400,7 @@ static void write_decoding_params(MLPEnc
         if (params_changed       & PARAM_OUTSHIFT) {
             put_bits(pb, 1, 1);
             for (ch = 0; ch <= rh->max_matrix_channel; ch++)
-                put_bits(pb, 4, dp->output_shift[ch] & 0xF);
+                put_sbits(pb, 4, dp->output_shift[ch]);
         } else {
             put_bits(pb, 1, 0);
         }
@@ -441,7 +441,7 @@ static void write_decoding_params(MLPEnc
             if (dp->param_presence_flags & PARAM_HUFFOFFSET) {
                 if (params_changed       & PARAM_HUFFOFFSET) {
                     put_bits(pb,  1, 1);
-                    put_bits(pb, 15, dp->huff_offset[ch] & 0x7FFF);
+                    put_sbits(pb, 15, dp->huff_offset[ch]);
                 } else {
                     put_bits(pb, 1, 0);
                 }
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to