1. 12 Sep, 2017 1 commit
  2. 08 Sep, 2017 2 commits
    • Clément Bœsch's avatar
      checkasm: use perf API on Linux ARM* · e0d56f09
      Clément Bœsch authored
      On ARM platforms, accessing the PMU registers requires special user
      access permissions. Since there is no other way to get accurate timers,
      the current implementation of timers in FFmpeg rely on these registers.
      Unfortunately, enabling user access to these registers on Linux is not
      trivial, and generally involve compiling a random and unreliable github
      kernel module, or patching somehow your kernel.
      
      Such module is very unlikely to reach the upstream anytime soon. Quoting
      Robin Murphin from ARM:
      
      > Say you do give userspace direct access to the PMU; now run two or more
      > programs at once that believe they can use the counters for their own
      > "minimal-overhead" profiling. Have fun interpreting those results...
      >
      > And that's not even getting into the implications of scheduling across
      > different CPUs, CPUidle, etc. where the PMU state is completely beyond
      > userspace's control. In general, the plan to provide userspace with
      > something which might happen to just about work in a few corner cases,
      > but is meaningless, misleading or downright broken in all others, is to
      > never do so.
      
      As a result, the alternative is to use the Performance Monitoring Linux
      API which makes use of these registers internally (assuming the PMU of
      your ARM board is supported in the kernel, which is definitely not a
      given...).
      
      While the Linux API is obviously cross platform, it does have a
      significant overhead which needs to be taken into account. As a result,
      that mode is only weakly enabled on ARM platforms exclusively.
      
      Note on the non flexibility of the implementation: the timers (native
      FFmpeg vs Linux API) are selected at compilation time to prevent the
      need of function calls, which would result in a negative impact on the
      cycle counters.
      e0d56f09
    • Tobias Rapp's avatar
      fate: add test for asetnsamples filter with padding disabled · d47159a4
      Tobias Rapp authored
      Adds another test for asetnsamples filter where padding of the last
      frame is switched off. Renames the existing test to make the difference
      obvious.
      Tested-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
      Signed-off-by: 's avatarTobias Rapp <t.rapp@noa-archive.com>
      d47159a4
  3. 07 Sep, 2017 2 commits
  4. 31 Aug, 2017 3 commits
  5. 30 Aug, 2017 3 commits
  6. 25 Aug, 2017 3 commits
  7. 24 Aug, 2017 1 commit
    • Dale Curtis's avatar
      avformat/mov: Fix trampling of ctts during seeks when sidx support is enabled. · 37e8edc9
      Dale Curtis authored
      When sidx box support is enabled, the code will skip reading all
      trun boxes (each containing ctts entries for samples inthat box).
      
      If seeks are attempted before all ctts values are known, the old
      code would dump ctts entries into the wrong location. These are
      then used to compute pts values which leads to out of order and
      incorrectly timestamped packets.
      
      This patch fixes ctts processing by always using the index returned
      by av_add_index_entry() as the ctts_data index. When the index gains
      new entries old values are reshuffled as appropriate.
      
      This approach makes sense since the mov demuxer is already relying
      on the mapping of AVIndex entries to samples for correct demuxing.
      
      As a result of this all ctts entries are now 1-count. A followup
      change will be submitted to remove support for > 1 count entries
      which will simplify seeking.
      
      Notes for future improvement:
      Probably there are other boxes (stts, stsc, etc) that are impacted
      by this issue... this patch only attempts to fix ctts since it
      completely breaks packet timestamping.
      
      This patch continues using an array for the ctts data, which is not
      the most ideal given the rearrangement that needs to happen (via
      memmove as new entries are read in). Ideally AVIndex and the ctts
      data would be set-type structures so addition is always worst case
      O(lg(n)) instead of the O(n^2) that exists now; this slowdown is
      noticeable during seeks.
      Signed-off-by: 's avatarDale Curtis <dalecurtis@chromium.org>
      Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
      37e8edc9
  8. 16 Aug, 2017 2 commits
  9. 15 Aug, 2017 1 commit
  10. 10 Aug, 2017 1 commit
  11. 08 Aug, 2017 2 commits
  12. 07 Aug, 2017 3 commits
  13. 05 Aug, 2017 1 commit
  14. 03 Aug, 2017 1 commit
  15. 01 Aug, 2017 4 commits
  16. 30 Jul, 2017 3 commits
  17. 27 Jul, 2017 1 commit
  18. 24 Jul, 2017 1 commit
  19. 21 Jul, 2017 1 commit
  20. 20 Jul, 2017 1 commit
  21. 18 Jul, 2017 1 commit
  22. 15 Jul, 2017 1 commit
  23. 13 Jul, 2017 1 commit