summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* http: Stop reading after receiving the whole file for non-chunked transfersMartin Storsjö2014-08-13
| | | | | | | | | | | | | | | | | | | | | | | | Previously this logic was only used if the server didn't respond with Connection: close, but use it even for that case, if the server response is non-chunked. Originally the http code has relied on Connection: close to close the socket when the file/stream is received - the http protocol code just kept reading from the socket until the socket was closed. In f240ed18 we added a check for the file size, because some http servers didn't respond with Connection: close (and wouldn't close the socket) even though we requested it, which meant that the http protocol blocked for a long time at the end of files, waiting for a socket level timeout. When reading over tls, trying to read at the end of the connection, when the peer has closed the connection, can produce spurious (but harmless) warnings. Therefore always voluntarily stop reading when the specified file size has been received, if not using a chunked transfer encoding. (For chunked transfers, we already return 0 as soon as we get the chunk header indicating end of stream.) Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: Return proper error code on invalid input dataNidhi Makhijani2014-08-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpeg: Suppress a compiler warning on callback typeLuca Barbato2014-08-09
|
* Remove obsolete FF_API_REFERENCE_DTS cruft.Anton Khirnov2014-08-09
|
* Remove obsolete FF_API_PROBE_MIME cruft.Anton Khirnov2014-08-09
|
* Bump major versions of all libraries.Anton Khirnov2014-08-09
|
* Postpone API-incompatible changes until the next bump.Anton Khirnov2014-08-09
|
* mpeg: K&R formatting cosmeticsLuca Barbato2014-08-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegts: Use av_free() to free memory allocated by av_strdup()Diego Biurrun2014-08-08
|
* mpegts: Fix memory leaks and related crashes in mpegs_write_header()Diego Biurrun2014-08-07
|
* mpegts: Avoid unnecessary variable shadowingDiego Biurrun2014-08-07
|
* mpegts: Drop some unnecessary parenthesesDiego Biurrun2014-08-07
|
* mpegts: K&R formatting cosmeticsDiego Biurrun2014-08-07
|
* movenc: fix QT chapter track character encodingJohn Stebbins2014-08-06
| | | | An encoding ("encd") box is required to tell QT that the string is UTF8
* movenc: add track title to tracksJohn Stebbins2014-08-06
|
* movenc: remove pointless loop around BITEXACT testJohn Stebbins2014-08-06
|
* movenc: Add option to disable nero chaptersJohn Stebbins2014-08-05
| | | | | | | And add flag to muxer documentation. Nero chapters break some taggers (mp3tag and iTunes). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Add HEVC definitionsFemi Adeyemi-Ejeye2014-08-05
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Define the section length with a constantLuca Barbato2014-08-04
| | | | | The specification says the value is expressed in 10 bits including the 4-byte CRC.
* Add Icecast protocolMarvin Scholz2014-08-04
| | | | | | Icecast is basically a convenience wrapper around the HTTP protocol. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Refactor http_open_cnxLuca Barbato2014-08-03
| | | | | | | | | Split return value handling from the actual opening. Incidentally fixes the https -> http redirect issue reported by Compn on behalf of rcombs. CC: libav-stable@libav.org
* flv: Index the audio streamLuca Barbato2014-08-01
| | | | | And leverage the video index if the video is just disabled as wm4 did in an initial patch.
* matroska: Register mime typesLuca Barbato2014-07-29
|
* aac: Register the mime typeLuca Barbato2014-07-29
| | | | | Speed up probing ADTS live streams that are not frame-aligned such as http://mp3.streampower.be/radio1.aac .
* avformat: Use the mime type information in input probeLuca Barbato2014-07-29
| | | | | It should provide a quicker guess for elementary streams provided by http.
* avstring: Expose the simple name match functionLuca Barbato2014-07-29
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avformat: Move av_probe_input* to format.cLuca Barbato2014-07-29
|
* caf: Use correct printf conversion specifiers for POSIX int typesDiego Biurrun2014-07-28
|
* dump: Use correct printf conversion specifiers for POSIX int typesDiego Biurrun2014-07-28
|
* mxf: Extract origin information from material and source trackMarc-Antoine Arnaud2014-07-28
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Detect Vanc/Vbi SMPTE-436M mxf trackMarc-Antoine Arnaud2014-07-28
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avformat: Mark AVOutputFormat argument in avformat_query_codec as constDiego Biurrun2014-07-26
|
* avformat: Mark argument in av_{i|o}format_next/ffurl_protocol_next as constDiego Biurrun2014-07-26
|
* http: K&R formatting cosmeticsDiego Biurrun2014-07-23
| | | | Also comment some #endifs and reshuffle headers into canonical order.
* http: Use a constant for the supported header sizeLuca Barbato2014-07-22
|
* http: Do move the class instantiation in the conditional blockLuca Barbato2014-07-21
| | | | Remove a warning if https support is disabled.
* http: Provide an option to override the HTTP methodLuca Barbato2014-07-21
| | | | Certain servers accept only PUT as valid method.
* mpegts: do not export empty language tagsJan Gerber2014-07-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avpacket: Check for and return errors in ff_interleave_add_packet()Nidhi Makhijani2014-07-17
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mov: Clarify tkhd flag settingsLuca Barbato2014-07-11
|
* mov: Do not group tracks if more than one is enabled per typeLuca Barbato2014-07-11
| | | | The specification requires at most 1 track enabled per alternate group.
* cdg: Forward error from avio_size() in read_header() functionNidhi Makhijani2014-07-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegts: pass MpegTSContext ptr explicitlyAlexander V. Lukyanov2014-07-10
| | | | | | | | | | | | | | AVFormatContext->priv_data is not always a MpegTSContext, it can be RTSPState when decoding a RTP stream. So it is necessary to pass MpegTSContext pointer explicitly. Within libav, the write_section_data function doesn't actually use the MpegTSContext at all, so this doesn't change anything at the moment (no memory was corrupted before), but it reduces the risk of anybody trying to touch the MpegTSContext via AVFormatContext->priv_data in the future. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: pass an AVFormatContext to ff_parse_fmtp()Anton Khirnov2014-07-09
| | | | Use it for logging, instead of NULL or the stream codec context.
* yuv4mpegenc: do not access AVCodecContext.coded_frameAnton Khirnov2014-07-09
| | | | | | | | Its contents are meaningful only if the stream codec context is the one actually used for encoding, which is often not the case (and is discouraged). Use AVCodecContext.field_order instead.
* nsvdec: remove commented out cruftAnton Khirnov2014-07-09
|
* mov: free the dv demux context with avformat_free_context()Anton Khirnov2014-07-09
|
* mtv: do not set sample_rate for videoAnton Khirnov2014-07-09
|
* oggparsecelt: do not set AVCodecContext.frame_sizeAnton Khirnov2014-07-09
| | | | It is supposed to be set by decoders only.
* adxdec: get rid of an avpriv functionAnton Khirnov2014-07-09
| | | | | The only thing the demuxer needs is the sample rate to set the timebase, which can be simply read with AV_RB32.