]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wmaenc.c
avcodec/g722enc: Validate parameters before using them
[ffmpeg] / libavcodec / wmaenc.c
index 091bc2ac3b91b1e05cb0c8aae0633525b86ea144..6a7e23d016c22ae5994e17d9ccd5f5ab18aede56 100644 (file)
@@ -343,7 +343,7 @@ static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
                          s->coef_vlcs[tindex]->huffcodes[1]);
         }
         if (s->version == 1 && s->avctx->channels >= 2)
-            avpriv_align_put_bits(&s->pb);
+            align_put_bits(&s->pb);
     }
     return 0;
 }
@@ -358,7 +358,7 @@ static int encode_frame(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
     else if (encode_block(s, src_coefs, total_gain) < 0)
         return INT_MAX;
 
-    avpriv_align_put_bits(&s->pb);
+    align_put_bits(&s->pb);
 
     return put_bits_count(&s->pb) / 8 - s->avctx->block_align;
 }