1. 23 Apr, 2018 1 commit
  2. 06 Jan, 2018 2 commits
  3. 10 Jul, 2017 1 commit
    • Diego Biurrun's avatar
      build: Add feature test macros for glibc 2.19+ · 825e463a
      Diego Biurrun authored
      glibc introduced _DEFAULT_SOURCE in version 2.19 to replace _BSD_SOURCE and
      _SVID_SOURCE, which were deprecated in version 2.20. Add _DEFAULT_SOURCE
      where the latter two are used to be forwards-compatible and avoid warnings
      about the use of deprecated definitions.
      825e463a
  4. 01 Jun, 2017 1 commit
  5. 30 Oct, 2015 1 commit
    • Martin Storsjö's avatar
      os_support: Don't try to return the service name as a string in getnameinfo · 00b62968
      Martin Storsjö authored
      Some systems may be lacking getservbyport; the previous ifdef wasn't
      quite enough since it still assumed that struct servent was defined,
      as pointed out by Clément Gregoire.
      
      Simply remove the possibility to return non-numeric services in
      getnameinfo; no caller of getnameinfo within libavformat
      currently try to use getnameinfo for retrieving the port number without
      NI_NUMERICSERV, and falling back on getservbyport may be non-threadsafe.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      00b62968
  6. 22 Dec, 2014 1 commit
  7. 19 Sep, 2014 1 commit
  8. 02 Nov, 2013 1 commit
  9. 08 Aug, 2013 1 commit
    • Martin Storsjö's avatar
      file: Move win32 utf8->wchar open wrapper to libavutil · dfc6b5c8
      Martin Storsjö authored
      When libavformat was changed to use the new avpriv_open function
      in 51eb213d, this silently bypassed the existing wrapper for
      win32. Move the win32 wrapper into libavutil/file.c to make sure
      it gets called everywhere (not just in the libavformat case).
      
      This makes sure that non-ascii file names gets opened properly
      (where file names internally are stored as utf8, but they get
      converted to wchar_t and opened with _wsopen).
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      dfc6b5c8
  10. 27 Mar, 2013 3 commits
  11. 16 Mar, 2013 1 commit
    • Reimar Döffinger's avatar
      Make ff_win32_open more robust. · c3c3bc7f
      Reimar Döffinger authored
      - Make MultiByteToWideChar fail when it encounters invalid encoding.
        Without this, invalid characters might just be skipped
      - When MultiByteToWideChar fails, assume the file name is in CP_ACP
        and open it via normal open function, even when the file will be
        written
      - When malloc fails return error instead of crashing
      Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
      c3c3bc7f
  12. 12 Mar, 2013 1 commit
  13. 23 Oct, 2012 1 commit
  14. 17 Jul, 2012 1 commit
  15. 15 Jul, 2012 2 commits
  16. 30 Jun, 2012 3 commits
  17. 26 Jun, 2012 1 commit
  18. 20 Jun, 2012 1 commit
  19. 19 Jun, 2012 1 commit
  20. 18 Feb, 2012 1 commit
  21. 06 Nov, 2011 1 commit
  22. 02 Nov, 2011 1 commit
  23. 12 May, 2011 1 commit
    • Diego Biurrun's avatar
      configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS. · 046f081b
      Diego Biurrun authored
      Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems
      since it causes certain system functions to be hidden on some (BSD) systems.
      The solution is to only add the flag on systems that really require it, i.e.
      glibc-based ones.
      
      This change makes BSD systems compile out-of-the-box without the need for
      adding specific flags manually.  It also allows dropping a number of flags
      set manually on a file-per-file basis, but were only present to work around
      breakage introduced by the presence of _POSIX_C_SOURCE.
      
      Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems.  We use XSI extensions
      in several places already, so it is preferable to define it globally instead
      of littering source files with individual #defines only needed for glibc.
      046f081b
  24. 23 Apr, 2011 1 commit
    • Kirill Gavrilov's avatar
      Handle unicode file names on windows · b1ac139d
      Kirill Gavrilov authored
      All file names should be in UTF-8 within libavformat.
      
      This is handled by mapping the open() function to an internal one
      in os_support.h for windows.
      
      fopen() could be overridden in the same way, but if that would be
      used from ffmpeg.c, it would add a dependency on an ff prefixed
      internal lavf function.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      b1ac139d
  25. 19 Mar, 2011 1 commit
  26. 16 Feb, 2011 1 commit
  27. 15 Feb, 2011 1 commit
  28. 30 Jan, 2011 2 commits
  29. 28 Jan, 2011 2 commits
  30. 06 Jul, 2010 1 commit
  31. 08 Mar, 2010 1 commit
    • Måns Rullgård's avatar
      Move resolve_host() to ffserver.c · 22f73dcc
      Måns Rullgård authored
      This deprecated function is only used by ffserver, yet does not have
      a prototype visible there.
      
      In the long term, ffserver should be made IPv6-aware.  In the meantime,
      this change removes cruft from lavf and fixes some warnings in ffserver.
      
      Originally committed as revision 22329 to svn://svn.ffmpeg.org/ffmpeg/trunk
      22f73dcc
  32. 07 Mar, 2010 1 commit