1. 03 Sep, 2013 6 commits
    • Timothy B. Terriberry's avatar
      Add an API to disable dithering. · 8396a1f8
      Timothy B. Terriberry authored
      This is to correspond to the feature in opus-tools's opusdec.
      opusdec itself probably won't be able to use it, because it still
       wants to do dithering after resampling, but the motivation for the
       feature is the same.
    • Timothy B. Terriberry's avatar
      Avoid clipping in short->float stereo downmixing. · a88a90f9
      Timothy B. Terriberry authored
      Previously I'd said this would require a large stack buffer, which
       was true if you simply wanted to re-use the existing
       op_short2float_filter() and floating-point op_stereo_filter().
      But the latter is not normally compiled for fixed-point anyway, so
       we can instead write new code that doesn't need the stack buffer
       without harming anything.
    • Timothy B. Terriberry's avatar
      Remove some OP_UNLIKELY macros. · 49233ebf
      Timothy B. Terriberry authored
      These were unlikely when I originally expected applications to
       normally provide a decode buffer in the right format of sufficient
      However, the decode filter API works by asking to decode into a
       0-byte buffer, which will trigger both of these tests on every
      Since this is how three of the four decoding APIs are implemented,
       this is not really that unlikely anymore.
    • Timothy B. Terriberry's avatar
    • Timothy B. Terriberry's avatar
      Minor decode control flow updates. · e0ab29d4
      Timothy B. Terriberry authored
      This makes op_fetch_and_process_page() always try to fetch another
       page, like it used to (and like its name implies).
      There was only one place where we needed the early return for
       unprocessed packets, and getting rid of that actually simplifies
       the logic there (replacing a conditional continue with an
       unconditional one in a slightly different location).
    • Timothy B. Terriberry's avatar
      Add an application decoding callback API. · 1b114a82
      Timothy B. Terriberry authored
      This is needed to allow advanced usage, like that of opusdec in
       opus-tools, which can simulate packet loss or save the range coder
       state for decoder verification.
      It could also be used in a pinch to use libopusfile for access to
       the raw Ogg packets, though this is somewhat of a hack.
  2. 26 Aug, 2013 1 commit
  3. 25 Aug, 2013 1 commit
  4. 24 Aug, 2013 3 commits
  5. 23 Aug, 2013 3 commits
    • Timothy B. Terriberry's avatar
      Add API to report information from server headers. · 97917914
      Timothy B. Terriberry authored
      This allows the application to report details about the server for
       HTTP[S] streams.
      For all HTTP[S], this includes the server software, content-type,
       and whether or not it's using HTTPS.
      For live streams, it also includes the station name, description,
       genre, homepage, nominal bitrate, and whether or not it's publicly
    • Timothy B. Terriberry's avatar
      Fix backwards HTTP Server header test. · f310b9ef
      Timothy B. Terriberry authored
      This was treating every unknown header as a Server header.
      Good thing this was last!
      The only damage was that we might have enabled pipelining even on
       known-bad servers.
    • Timothy B. Terriberry's avatar
      Fix C&P error in proxy user/password macros. · 06a191ef
      Timothy B. Terriberry authored
      I guess no one was using these.
      Clearly we need to test this more often, but this is a pain without
       a reliable public proxy, or a local proxy server setup.
  6. 21 Aug, 2013 1 commit
  7. 20 Aug, 2013 6 commits
  8. 19 Aug, 2013 2 commits
  9. 12 Aug, 2013 2 commits
    • Timothy B. Terriberry's avatar
      Fix an uninitialized variable. · 8f26e5a1
      Timothy B. Terriberry authored
      Surprisingly, the actual initial value of this variable is
       irrelevant, since we always insert 24 bits of data into and then
       read only those bits out.
      However, fixing this still removes undefined behavior and removes
       extraneous register dependencies.
    • Timothy B. Terriberry's avatar
      Minor UTF-8/UTF-16 cleanups. · cfa59561
      Timothy B. Terriberry authored
      - Reject 'not a character' values 0xFFFE and 0xFFFF.
      - Remove some unnecessary string length checks.
  10. 10 Aug, 2013 1 commit
  11. 08 Aug, 2013 4 commits
  12. 06 Aug, 2013 6 commits
  13. 15 Jul, 2013 4 commits
    • Timothy B. Terriberry's avatar
      Add a gain control API. · 7aea3cae
      Timothy B. Terriberry authored
      A new op_set_gain_offset() allows the application to provide its own
       offset to the current decoder gain setting, as well as specify what
       offsets should be applied.
      The header gain alone is still the default, but the application may
       also request that the track gain be applied, or that neither be
      In addition, an op_get_track_gain() function can parse the track
       gain out of a set of comment tags.
      This is mainly provided as a convenience for applications that need
       this information, so they don't have to write their own parser.
    • Timothy B. Terriberry's avatar
      API documentation updates. · e15e3621
      Timothy B. Terriberry authored
      - Provide an Overview section which describes some of the general
         design decisions of the libopusfile API.
      - Explicitly state that we always decode at 48 kHz.
      - Make it clearer that we always apply the header gain.
      - Document the automatic soft-clipping support.
      - Document that stream open failure does not close the source.
      - Other minor fixes.
      Thanks to tangobravo and siriusbtx for asking the questions which
       prompted this update.
    • Timothy B. Terriberry's avatar
      Plug possible memory leak on stream open failure. · 68f18feb
      Timothy B. Terriberry authored
      Not all the failure paths cleaned up after themselves properly.
      Thanks to tangobravo for complaining about similar issues in
       libvorbisfile, which prompted me to audit this code.
    • Timothy B. Terriberry's avatar
      Avoid using a long-long literal for OP_INT64_MAX. · 6587f1de
      Timothy B. Terriberry authored
      The LL suffix isn't C89, so it may not work everywhere.