Advertisement
Guest User

Untitled

a guest
Feb 8th, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
  2. index 076a225..72b1ee0 100644
  3. --- a/libavcodec/dcadec.c
  4. +++ b/libavcodec/dcadec.c
  5. @@ -1215,17 +1217,17 @@ static int dca_subsubframe(DCAContext *s, int base_channel, int block_index)
  6. /*
  7. * Decode VQ encoded high frequencies
  8. */
  9. + if ((!s->debug_flag & 0x01) &&
  10. + s->subband_activity[k]-s->vq_start_subband[k] > 0) {
  11. + av_log(s->avctx, AV_LOG_DEBUG,
  12. + "Stream with high frequencies VQ coding\n");
  13. + s->debug_flag |= 0x01;
  14. + }
  15. for (l = s->vq_start_subband[k]; l < s->subband_activity[k]; l++) {
  16. /* 1 vector -> 32 samples but we only need the 8 samples
  17. * for this subsubframe. */
  18. int hfvq = s->high_freq_vq[k][l];
  19.  
  20. - if (!s->debug_flag & 0x01) {
  21. - av_log(s->avctx, AV_LOG_DEBUG,
  22. - "Stream with high frequencies VQ coding\n");
  23. - s->debug_flag |= 0x01;
  24. - }
  25. -
  26. int8x8_fmul_int32(&s->dcadsp, subband_samples[k][l],
  27. &high_freq_vq[hfvq][subsubframe * 8],
  28. s->scale_factor[k][l][0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement