oanastratulat

Untitled

Jan 11th, 2012
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c
  2. index 28176f3..b0cfc1c 100644
  3. --- a/libavcodec/vorbis.c
  4. +++ b/libavcodec/vorbis.c
  5. @@ -210,10 +210,16 @@ void ff_vorbis_floor1_render_list(vorbis_floor1_entry * list, int values,
  6.                                    uint16_t *y_list, int *flag,
  7.                                    int multiplier, float *out, int samples)
  8.  {
  9. -    int lx, i;
  10. +    int lx, i, j;
  11.      uint8_t ly;
  12.      lx = 0;
  13.      ly = y_list[0] * multiplier;
  14. +       for (i = 1; i<values; i++)
  15. +        for (j = i+1; j<values-1; j++)
  16. +            if (list[i].x == list[j].x) {
  17. +                  av_log(0, AV_LOG_ERROR, "Same value of x = %d detected in floor1 list.", list[i].x);
  18. +                  return AVERROR_INVALIDDATA;
  19. +            }
  20.      for (i = 1; i < values; i++) {
  21.          int pos = list[i].sort;
  22.          if (flag[pos]) {
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×