summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* os_support: Don't compare a negative number against socket descriptorsMartin Storsjö2012-06-30
| | | | | | | | The fds are unsigned integers in the windows definition of struct sockfds. Due to this, the comparison if (fds[i].fd > n) was always false. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Include all the necessary headers for the win32 open functionRonald S. Bultje2012-06-30
| | | | | | | | | | | | | io.h is required for open and _wopen, and fcntl.h is required for the O_CREAT flag. On mingw, fcntl.h is included by os_support.h (and the mingw fcntl.h includes io.h), but include it explicitly here since this implementation requires it. Also move the #undef open up. open must not be defined to ff_win32_open while including the headers that declare the open function. On mingw, this happened in os_support.h before open was redirected. Signed-off-by: Martin Storsjö <martin@martin.st>
* file: Only include unistd.h if it existsRonald S. Bultje2012-06-29
| | | | | | | | | | | | It is included for the open/read/write/close functions. On MSVC, where this header does not exist, the same functions are provided by io.h, which is already included. On windows, these functions are provided by io.h. Make sure io.h is included if it exists, regardless of the setmode function. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Don't explicitly include unistd.h any longerRonald S. Bultje2012-06-29
| | | | | | | | unistd.h used to be required for gethostname. On windows, gethostname is provided by winsock2.h. Now network.h includes both unistd.h and winsock2.h if they exist. Signed-off-by: Martin Storsjö <martin@martin.st>
* flv: add support for G.711Damien Fetis2012-06-28
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* flvenc: K&R formatting cosmeticsLuca Barbato2012-06-28
|
* movenc: Add channel layouts for PCM.Alex Converse2012-06-27
|
* udp: Support IGMPv3 source specific multicast and source blockingMartin Storsjö2012-06-27
| | | | | | Based on an original patch by Stephen D'Angelo <SDAngelo@evertz.com>. Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Pass NULL as hostname to getaddrinfo if the string is emptyJordi Ortiz2012-06-27
| | | | | | | This gives you the proper v4 or v6 version of the "any address", allowing receiving connections on any address on the machine. Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Set AI_PASSIVE when the socket will be used for listeningJordi Ortiz2012-06-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mpc8: read APE tags.Anton Khirnov2012-06-26
|
* network: Don't redefine error codes if they already exist in errno.hRonald S. Bultje2012-06-26
| | | | | | | | Since the errno.h values don't match the error codes that winsock returns, map the winsock error codes to the errno ones, to make sure explicit checks against AVERROR(x) match. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Check for sys/time.hRonald S. Bultje2012-06-26
| | | | | | | | Apparently this include is needed on some systems for building the poll fallback (for the timeval struct for select?), but it isn't available on all systems. Thus only include it if it exists. Signed-off-by: Martin Storsjö <martin@martin.st>
* network: Include unistd.h from network.hMartin Storsjö2012-06-26
| | | | | | | | | | | This heaader is required for close() for sockets in network code. For winsock, the equivalent function is defined in the winsock2.h header. This avoids having the HAVE_UNISTD_H in all files dealing with raw sockets. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: do not try to read total disc/track number if data atom is too short.Carl Eugen Hoyos2012-06-26
| | | | | | Fixes bug 308. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wtv: Check the return value from gmtimeMartin Storsjö2012-06-25
| | | | | | | | On MSVC, gmtime returns NULL for values outside of their supported range (and these show up in our fate test). This doesn't seem to affect the actual fate test result. Signed-off-by: Martin Storsjö <martin@martin.st>
* ape: create audio stream before reading tags.Anton Khirnov2012-06-24
| | | | | | | Tags may contain attached picture, which will be exported as video streams. This ensures that the audio stream is always the first.
* mov: make a length variable larger.Anton Khirnov2012-06-24
| | | | | Right now, it's uint16_t, but for itunes metadata a 32bit number is stored in it.
* image2: Add "start_number" private option to the demuxerMashiat Sarker Shakkhar2012-06-24
| | | | | | | Currently if a pattern is given we look for up to the fifth file name in the sequence. This option sets that limit to an arbitrary number. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* image2: Add "start_number" private option to the muxerMashiat Sarker Shakkhar2012-06-24
| | | | | | | | | This adds the capability to start counting file number from an arbitrary integer. This includes a few lines of trivial code from FFmpeg codebase. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace usleep() calls with av_usleep()Mans Rullgard2012-06-22
| | | | | | | This reduces the dependency on unistd.h which is not available on all systems. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: include libavutil/time.h instead of redeclaring av_gettime()Mans Rullgard2012-06-21
| | | | | | This avoids some warnings about redundant declarations. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: Make codec_tag arrays constantRonald S. Bultje2012-06-21
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf, lavu: version bumps and APIchanges for av_gettime() moveMans Rullgard2012-06-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* MS Screen 1 decoderKostya Shishkov2012-06-20
|
* Move av_gettime() to libavutilMans Rullgard2012-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mov: fix operator precedence bugRonald S. Bultje2012-06-20
|
* Remove unnecessary inclusions of [sys/]time.hMans Rullgard2012-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: remove unnecessary inclusions of unistd.hMans Rullgard2012-06-20
| | | | | | These files do not use anything provided by unistd.h. Signed-off-by: Mans Rullgard <mans@mansr.com>
* udp: Properly check for invalid socketsMartin Storsjö2012-06-19
| | | | | | If stdin has been closed, 0 is a valid socket descriptor. Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Check the return value from getsockoptMartin Storsjö2012-06-19
| | | | | | | Make sure we actually have an error code in ret, in case getsockopt failed. Signed-off-by: Martin Storsjö <martin@martin.st>
* network: Use av_strerror for getting error messagesMartin Storsjö2012-06-19
| | | | | | | Also use ff_neterrno() instead of errno directly (which doesn't work on windows), for getting the error code. Signed-off-by: Martin Storsjö <martin@martin.st>
* udp: Properly print error from getnameinfoMartin Storsjö2012-06-19
| | | | | | | | getnameinfo doesn't set errno on failure, it returns an error code, which should be handled by gai_strerror instead of the normal strerror. Signed-off-by: Martin Storsjö <martin@martin.st>
* mmst: Use AVUNERROR() to convert error codes to the right range for strerrorMartin Storsjö2012-06-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* network: Pass pointers of the right type to get/setsockopt/ioctlsocket on ↵Martin Storsjö2012-06-19
| | | | | | | | windows This avoids warnings. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Reduce the number of idle posts sent by sleeping 50msSamuel Pitoiset2012-06-19
| | | | | | | | | | | | Rtmpt is effectively half duplex - the server can't return any data unless we send a request (to which the server responds). If we don't have any data to send currently, and the server didn't return any data either, wait a little before doing the next request. This avoids busy looping with idle posts with empty replies, while waiting for more data from the server. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: remove incomplete, disabled seeking codeRonald S. Bultje2012-06-19
|
* http: replace atoll() with strtoll()Ronald S. Bultje2012-06-19
|
* mpegts: remove unused/incomplete/broken seeking codeRonald S. Bultje2012-06-19
|
* rtpenc: Support packetizing iLBCMartin Storsjö2012-06-18
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Add a depacketizer for iLBCMartin Storsjö2012-06-18
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Implement the iLBC storage file formatMartin Storsjö2012-06-18
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Support muxing/demuxing iLBCMartin Storsjö2012-06-18
| | | | | | | The packet size, signalled via block_align, has to be passed via the container. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Don't send every flv packet in a separate HTTP request in RTMPTSamuel Pitoiset2012-06-18
| | | | | | | | | | | Add a new option 'rtmp_flush_interval' that allows specifying the number of packets to write before sending it off as a HTTP request. This is mostly relevant for RTMPT - for plain RTMP, it only controls how often we check the socket for incoming packets, which shouldn't affect the performance in any noticeable way. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Send mode=record instead of mode=receiveMartin Storsjö2012-06-18
| | | | | | | | | | This seems to be the correct mode to send, according to the original RTSP RFC, and matches the method RECORD which is sent later when starting to send data. Darwin Streaming Server works fine with either of them. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Allow requesting H264 RTP packetization mode 0Martin Storsjö2012-06-18
| | | | | | | | | This requires all NAL units to fit within single RTP packets. It doesn't change the actual packetization for packets that fit, but errors out and gives a helpful hint if the NAL units would have to be split, and signals the right packetization mode in the SDP. Signed-off-by: Martin Storsjö <martin@martin.st>
* RTMPT protocol supportSamuel Pitoiset2012-06-17
| | | | | | | | | | This adds two protocols, but one of them is an internal implementation detail just used as an abstraction layer/generalization in the code. The RTMPT protocol implementation uses rtmphttp:// as an alternative to the tcp:// protocol. This allows moving most of the lower level logic out from the higher level generic rtmp code. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Properly handle chunked transfer-encoding for replies to post dataMartin Storsjö2012-06-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Fail reading if the connection has gone awayMartin Storsjö2012-06-17
| | | | | | | This can happen if doing a new request using the same socket, but the new request failed, which clears the urlcontext. Signed-off-by: Martin Storsjö <martin@martin.st>
* amr: Mark an array constMartin Storsjö2012-06-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>