summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* Give all anonymously typedeffed structs in headers a nameDiego Biurrun2012-10-06
| | | | Anonymous structs cannot be forward declared and have no benefit.
* segment: Add comments about calls that only are relevant for some muxersMartin Storsjö2012-10-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Add an option for omitting the first header and final trailerMartin Storsjö2012-10-04
| | | | | | | This allows writing totally bare segments, without any header/trailer included anywhere. Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Flush buffered data before finishing a segmentMartin Storsjö2012-10-04
| | | | | | | This makes sure any buffered data is written to the segment, for muxers that buffer up data internally (e.g. fragmented mp4). Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Set the resend_headers flag for each segmentMartin Storsjö2012-10-04
| | | | | | | | | This makes sure new inline headers are emitted when the next packet is written. This allows segmenting mpegts without calling write_header/write_trailer (nor freeing/reiniting the muxer) for each segment. Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Add an option for disabling writing of a header/trailer to each segmentMartin Storsjö2012-10-04
| | | | | | | | Some segmented formats (such as fragmented mp4) are "bare", as in, the segment files do not have the same headers/trailers as full normal files of that format have. Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Free and reinit the muxer before calling avformat_write_headerMartin Storsjö2012-10-04
| | | | | | | | | | | | This makes sure the muxers are set up in the way they expect with no data left around from the previous run (which could cause various issues including memory leaks, depending on the chaine muxer). This fixes memory leaks with the mpegts and flv muxers. It also makes the usage of chained muxers correct. Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Use the public av_write_header/av_write_trailer functionsMartin Storsjö2012-10-04
| | | | | | | | | With this change, the segmenter muxer doesn't rely on anything not available/supported to libavformat external users, making the segmenter muxer do things just like a normal segmenter application using libavformat would do. Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Properly create new AVStreams for the chained muxerMartin Storsjö2012-10-04
| | | | | | | | | Before, the chained muxer reused the AVStreams array from the outer muxer, which made it impossible to use the proper public functions (such as av_write_frame) when calling the chained muxer. Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Add a missing spaceMartin Storsjö2012-10-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h264probe: Don't error out on bits that no longer are reservedMichael Niedermayer2012-10-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* segment: Pass the interrupt callback on to the chained AVFormatContext, tooMartin Storsjö2012-10-02
| | | | | | | | This might not be needed at the moment, but it's good practice to pass it to all chained AVFormatContexts, if it would happen to be used there at a later point. Signed-off-by: Martin Storsjö <martin@martin.st>
* nut: add do {} while (0) to GET_VLuca Barbato2012-10-02
| | | | Make it consistent with the other function-like macros.
* avformat: refactor avformat_write_headerLuca Barbato2012-10-01
| | | | Split away option settings, sanity checks and general setup.
* avformat: refactor avformat_write_headerLuca Barbato2012-10-01
| | | | Mostly cosmetic changes adding some intermediate to shorten the lines.
* avformat: split muxing functions from util.cLuca Barbato2012-10-01
|
* mpegts: Drop pointless casting of hex_dump_debug argumentsDiego Biurrun2012-10-01
|
* avformat: const correctness for av_hex_dump / av_hex_dump_logDiego Biurrun2012-10-01
|
* avformat: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* avformat: Remove non-compiling and/or silly commented-out printf/av_log ↵Diego Biurrun2012-10-01
| | | | statements
* avidec: use actually read size instead of requested sizeAnton Khirnov2012-09-29
| | | | Fixes CVE-2012-2788
* avidec: return 0, not packet size from read_packet().Anton Khirnov2012-09-29
|
* http: Increase buffer sizes to cope with longer URIsDuncan Salerno2012-09-28
| | | | | | | | | | | | | Use the MAX_URL_SIZE define where applicable. Increase buffer sizes for all buffers that need to fit a long pathname - buffers that need to fit only the hostname (and other short strings, but not the pathname - such as "headers" in http_connect) are kept at 1024 bytes for now. Also increase the max line length in http_read_header, since it might need to contain a full url for Location: redirects. Signed-off-by: Martin Storsjö <martin@martin.st>
* nutenc: const correctness for ff_put_v_trace/put_s_trace function argumentsDiego Biurrun2012-09-27
|
* nutdec: Remove unused and broken debug function stubDiego Biurrun2012-09-27
|
* Add Opus support to the Ogg muxer.Nathan Caldwell2012-09-27
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avformat: Identify anonymous AVIO typedef structs.Dale Curtis2012-09-27
| | | | | | | | | | Anonymous typedef structs prevent forward declaration, this change gives the AVIOContext and AVIOInterruptCB structures a name. These structures are now in line with other common structures such as AVFormatContext and AVCodecContext. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* nutdec: const correctness for get_v_trace/get_s_trace function argumentsDiego Biurrun2012-09-26
|
* rtpdec: Remove a useless ff_ prefix from a static symbolMartin Storsjö2012-09-26
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Support depacketizing speexDmitry Samonenko2012-09-26
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Add support for packetizing speexDmitry Samonenko2012-09-26
| | | | | | | This packetization scheme simply places the full packets into the RTP packet without any extra header bytes. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggparsetheora: make it more robustLuca Barbato2012-09-24
|
* ogg: prevent NULL pointer deference in theora gptoptsMichael Niedermayer2012-09-24
| | | | | | | | Additional safety in case a special ogg stream is crafted with the proper number of Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ogg: calculate the start position once all the headers are parsedLuca Barbato2012-09-24
| | | | | The fisbone packets can be muxed in any order as long the last one comes before the first data packet.
* ogg: check that the expected number of headers had been parsedLuca Barbato2012-09-24
| | | | Not having the header for a codec is a tell-tale of a broken file.
* Use avcodec_free_frame() to free AVFrames.Anton Khirnov2012-09-24
|
* lavf: use a malloced AVFrame in try_decode_frame().Anton Khirnov2012-09-24
| | | | This allows using avcodec_free_frame() to free it properly.
* rtp: Packetization of JPEG (RFC 2435)Samuel Pitoiset2012-09-23
|
* smoothstreamingenc: Copy the SAR on the AVStreams as wellMartin Storsjö2012-09-23
| | | | | | This is required in chained muxers, if the SAR happens to be set. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskadec: fix a sanity check.Anton Khirnov2012-09-21
|
* matroskadec: only return corrupt packets that actually contain dataAnton Khirnov2012-09-21
| | | | Fixes bug 372.
* lavf: zero data/size of the packet passed to read_packet().Anton Khirnov2012-09-21
|
* lavf probe: prevent codec probe with no data at all seenJanne Grunau2012-09-20
| | | | | | This occurs with fuzzed mpeg-ts files. set_codec_from_probe_data() is called with a zeroed AVProbeData since no packet made through for specific stream.
* mp3dec: read Xing frame TOC indexAnton Khirnov2012-09-19
|
* mp3dec: use named constants for Xing header flagsAnton Khirnov2012-09-19
|
* mov: support random access point groupingYusuke Nakamura2012-09-19
| | | | | | | | | Frames described by this grouping are the starter of a closed or an open GOP. This is useful for open GOP of H.264 stream which is not described by sync sample atom. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* matroskadec: properly support BlockDurationLuca Barbato2012-09-19
|
* matroskadec: split frame parsingLuca Barbato2012-09-19
|
* matroskadec: split laces parsingLuca Barbato2012-09-19
|
* matroska: implement support for ProResLuca Barbato2012-09-19
| | | | | | | | Support Matroska native formatting. On demuxing prepend a Frame container atom (32bit big endian encoded frame size and 'icpf' string). On muxing remove it.