summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* 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>
* amr: More space cleanupMartin Storsjö2012-06-17
| | | | | | This was missed in the previous cleanup patch. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Fix memory leaks in the muxer open functionMartin Storsjö2012-06-17
| | | | | | Also return a proper error code in these cases. Signed-off-by: Martin Storsjö <martin@martin.st>
* amr: Cosmetic cleanupMartin Storsjö2012-06-17
| | | | | | | | Add spaces around operators, fix brace placement and whitespace to match K&R style, vertically align code, remove redundant != 0 and convert x == 0 into !x, drop useless braces. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov_chan: Fix operator precedence by adding parenthesesMartin Storsjö2012-06-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Check the listen callJordi Ortiz2012-06-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* flacdec: read attached pictures.Anton Khirnov2012-06-16
|
* lavf: don't segfault when a NULL filename is passed to avformat_open_input()Anton Khirnov2012-06-16
| | | | | | | | This can easily happen when the caller is using a custom AVIOContext. Behave as if the filename was an empty string in this case. CC: libav-stable@libav.org
* segment: remove unnecessary <strings.h> includeJanne Grunau2012-06-15
|
* rtmp: Read and handle incoming packets while writing dataSamuel Pitoiset2012-06-14
| | | | | | | | | | | This makes sure all incoming packets are read and handled (and reacted to) while sending an FLV stream over RTMP to a server. If there were enough incoming data to fill the TCP buffers, this could potentially make things block at unexpected places. For the upcoming RTMPT support, we need to consume all incoming data before we can send the next request. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Don't require frames to start with a Mode A packetMartin Storsjö2012-06-14
| | | | | | | | While there is no reason for starting a frame with anything else than a Mode A packet, some senders seem to consistently use Mode B packets for everything. This fixes depacketization of such streams. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Add a new option 'rtmp_buffer', for setting the client buffer timeSamuel Pitoiset2012-06-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Set the client buffer time to 3s instead of 0.26sSamuel Pitoiset2012-06-13
| | | | | | | | This factorizes existing code into a new function gen_buffer_time(), which generates the client buffer time message and sends it to the server. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Handle server bandwidth packetsSamuel Pitoiset2012-06-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Display a verbose message when an unknown packet type is receivedSamuel Pitoiset2012-06-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Tokenize the AMF connection parameters manually instead of using strtok_rMartin Storsjö2012-06-13
| | | | | | This fixes builds on platforms without strtok_r (windows). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Fix a possible access to invalid memory location when the playpath is ↵Samuel Pitoiset2012-06-12
| | | | | | too short. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Do not send extension for flv filesSamuel Pitoiset2012-06-11
| | | | | | This fixes bugzilla bug #304. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: support connection parametersSamuel Pitoiset2012-06-11
| | | | | | | | | Allow using connection parameters in order to append arbitrary AMF data like "B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0" to the Connect message. You can pass these parameters through the -rtmp_conn option. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: set AVCodecContext.width/height for h264Mans Rullgard2012-06-09
| | | | | | | This is required for correct cropping of files from Canon cameras. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegts: Remove disabled extension matching probe.Alex Converse2012-06-07
|
* avformat: Probe codecs at score 0 on buffer exhaustion conditions.Alex Converse2012-06-05
|