1. 28 Feb, 2013 1 commit
    • Timothy B. Terriberry's avatar
      ogg: Fix borken stream resets. · 1e604e1f
      Timothy B. Terriberry authored
      Commit 78a8771f attempted to reset the ogg_stream_state in
      find_last_frame(), but it tries to do so using a non-existent page
      and then leaks memory (due to using ogg_stream_init() instead of
      ogg_stream_reset()). Its caller, Ogg_GetLastPacket(), then tries
      to restore the contents of the current packet, but its call to
      ogg_stream_pageseek() will immediately fail, leaving the dangling
      packet pointers untouched.
      
      Instead, just back up the whole stream state and restore it on
      exit. This fixes both problems.
      Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
      (cherry picked from commit d6aeeebe0c7ec9f4defe1751454bc3c1943d84e1)
      Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
      1e604e1f
  2. 27 Feb, 2013 3 commits
  3. 26 Feb, 2013 11 commits
  4. 21 Feb, 2013 1 commit
  5. 19 Feb, 2013 6 commits
  6. 12 Feb, 2013 7 commits
  7. 11 Feb, 2013 2 commits
  8. 10 Feb, 2013 4 commits
  9. 09 Feb, 2013 2 commits
  10. 08 Feb, 2013 1 commit
  11. 07 Feb, 2013 1 commit
  12. 06 Feb, 2013 1 commit
    • Rafaël Carré's avatar
      Remove variable name clashes in TAB_REMOVE · 6be4754f
      Rafaël Carré authored
      If foo[i] or bar[i_index] are used in TAB_REMOVE / TAB_FIND, they will
      use another variable with local scope declared inside the macro.
      
      for (int i = 0; i < 1; i++) {
          TAB_REMOVE( count, array, foo[i] );
      }
      
      will expand to:
      
      for (int i = 0; i < 1; i++) {
          int i_index;
          .....
          for (int i = 0; i < count; i++)
              if (array[i] == foo[i])
              {
                  index = i;
                  break;
              }
          .....
      }
      
      And inner scope i is used to index foo, instead of the outer scope i
      which we would expect without knowing the content of the macro.
      (cherry picked from commit 728ef39d15cdbfc5b1bc9beba8a97493ef6c08fc)
      Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
      6be4754f