Skip to content
Snippets Groups Projects
  1. Dec 07, 2012
  2. Dec 03, 2012
  3. Nov 27, 2012
    • Gregory Maxwell's avatar
      Fix opusenc crash on win32 for large files; Length detection on 32bit. · fc569f8b
      Gregory Maxwell authored
      Opusenc was using ftell() whos return is 32 bits on some systems to get the
       input file size and later code was not dealing well with negative sizes.
      This commit changes to use 64-bit returning functions where available and
       sanity checks the detected length then treats any cases where the length
       still ends up negative as streams.
      
      Thanks to win32vb on IRC for the report and reproduction.
      fc569f8b
  4. Nov 14, 2012
    • Ralph Giles's avatar
      Enable maintainer mode by default on automake 1.11 · d71e574b
      Ralph Giles authored
      Passing 'enable' as an argument to AM_MAINTAINER_MODE flips the
      default to enabled, rather than disabled until automake 1.11.
      This is a safer default for a developer-oriented library.
      
      ./configure --disable-maintainer-mode is still available for
      packagers who what to preserve the upstream build distribution.
      
      On earlier automake versions, the argument appears to have no
      effect, so there is no behaviour change for developers using
      older autotools.
      
      Based on a patch for opusfile by ron@debian.org.
      d71e574b
  5. Nov 05, 2012
    • Ralph Giles's avatar
      Conditionalize the opusrtp socket code. · 97a5c5fa
      Ralph Giles authored
      This lets it compile (but not be functional) on Windows,
      which doesn't support the posix socket api.
      97a5c5fa
    • Ralph Giles's avatar
      Update Makefile.unix to work with mingw. · d2ca877f
      Ralph Giles authored
      If $(CC) contains the substring 'mingw' then add some
      options required to target windows. This fixes
      
        make -f Makefile.unix CC=i686-w64-mingw32-gcc
      
      on my Fedora 17 system.
      
      This uses a few more GNU make features, and makes the
      Makefile itself less portable. However, we've had some
      gnu-isms like := for a couple of releases so far without
      complaint.
      d2ca877f
    • Ralph Giles's avatar
      Simplify native-endian reader. · ed79787d
      Ralph Giles authored
      We don't need the union, we can memcpy directly into an int.
      NB this assumes at least a 32 bit int, since the actual header
      field is 32 bits.
      
      Also minor related comment updates
      ed79787d
    • Ralph Giles's avatar
      Add a native-endian int32 reader. Fixes an ARM warning. · f83bec96
      Ralph Giles authored
      Arm (and other) architectures have stricter alignment requirements
      thank x86, so just casting a char* to an int* and reading from it
      could cause an exception, and because of this gcc warns on that
      platform.
      
      I'm pretty sure this particular read would always be aligned in
      pracice, since it's the first word of the network packet returned
      by pcap, but adding a more general helper is reasonable.
      
      We memcpy() the value into a union, which the compiler should
      allocate aligned, and then read the data back out as an int.
      
      Thanks to Ron for reporting the issue, and Greg for suggesting
      the fix.
      f83bec96
  6. Nov 03, 2012
    • Gregory Maxwell's avatar
      Lower default bitrates for sampling rates <44.1k. Fix status output. · db7bbf53
      Gregory Maxwell authored
      Getting 64kbit/sec output for a mono 8kHz stream is somewhat surprising.
      Instead lower the default rate by a factor of (rate+16000)/64000 for rates
      under 44.1kHz. This gives mono 8kHz a more respectable 24kbit/sec rate.
      
      In opusenc the "encoding complete" was incompletely overwriting
      the last status line. Now it takes care to overwrite it all the way.
      db7bbf53
  7. Oct 30, 2012
  8. Oct 21, 2012
  9. Oct 18, 2012
  10. Oct 16, 2012
  11. Oct 04, 2012
    • Ralph Giles's avatar
      Print the packet duration as well as size when sending. · 78b4e76a
      Ralph Giles authored
      Helps debug duration-related issues.
      78b4e76a
    • Ralph Giles's avatar
      Accept filenames to send over rtp on the command line. · 091271a5
      Ralph Giles authored
      Also update the usage and manpage for the send functionality.
      091271a5
    • Ralph Giles's avatar
      Calculate timestamps from packet durations. · f7455e66
      Ralph Giles authored
      Previously, everything was hard-coded to 20 ms. Now we increment
      rtp timestamps and ogg granulepos based on the packet duration
      as described by the ToC header.
      
      This adds a dependency on libopus, but the opus_packet() calls
      as small and can stand alone, so they could be extracted and
      supplied separately if necessary.
      
      Granulepos values are still ignored when reading from a .opus
      file. It would probably be better to either warn, or use those
      as much as possible to set the rtp timestamps to better represent
      the recorded data.
      f7455e66
  12. Oct 03, 2012
  13. Oct 02, 2012
  14. Oct 01, 2012
  15. Sep 27, 2012
  16. Sep 25, 2012
  17. Sep 19, 2012
  18. Sep 16, 2012
Loading