1. 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
  2. 22 Dec, 2014 1 commit
  3. 19 Sep, 2014 1 commit
  4. 02 Nov, 2013 1 commit
  5. 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
  6. 27 Mar, 2013 3 commits
  7. 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
  8. 12 Mar, 2013 1 commit
  9. 23 Oct, 2012 1 commit
  10. 17 Jul, 2012 1 commit
  11. 15 Jul, 2012 2 commits
  12. 30 Jun, 2012 3 commits
  13. 26 Jun, 2012 1 commit
  14. 20 Jun, 2012 1 commit
  15. 19 Jun, 2012 1 commit
  16. 18 Feb, 2012 1 commit
  17. 06 Nov, 2011 1 commit
  18. 02 Nov, 2011 1 commit
  19. 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
  20. 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
  21. 19 Mar, 2011 1 commit
  22. 16 Feb, 2011 1 commit
  23. 15 Feb, 2011 1 commit
  24. 30 Jan, 2011 2 commits
  25. 28 Jan, 2011 2 commits
  26. 06 Jul, 2010 1 commit
  27. 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
  28. 07 Mar, 2010 2 commits
  29. 28 Feb, 2010 1 commit
  30. 08 Feb, 2010 1 commit
  31. 25 Jan, 2010 1 commit
  32. 11 Jan, 2010 1 commit