summaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat: Move av_probe_input* to format.cLuca Barbato2014-07-291-135/+0
|
* avformat: Mark AVOutputFormat argument in avformat_query_codec as constDiego Biurrun2014-07-261-1/+1
|
* avformat_new_stream: make the AVCodec parameter constRoman Savchenko2014-07-081-1/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace av_malloc() and memset(0) by av_mallocz()Diego Biurrun2014-06-221-4/+2
|
* lavf: switch to AVStream.time_base as the hint for the muxer timebaseAnton Khirnov2014-06-181-3/+6
| | | | | | | | | | | | Previously, AVStream.codec.time_base was used for that purpose, which was quite confusing for the callers. This change also opens the path for removing AVStream.codec. The change in the lavf-mkv test is due to the native timebase (1/1000) being used instead of the default one (1/90000), so the packets are now sent to the crc muxer in the same order in which they are demuxed (previously some of them got reordered because of inexact timestamp conversion).
* lavf: group dump functions togetherVittorio Giovara2014-06-141-246/+0
|
* lavf: add av_stream_get_side_dataJanne Grunau2014-05-201-0/+15
|
* probe: Support AAC_LATM in set_codec_from_probe_dataLuca Barbato2014-05-031-0/+1
|
* lavc: eliminate tb_unreliable()Anton Khirnov2014-04-281-19/+1
| | | | | If framerate estimation is enabled, it makes sense to always apply it, instead of limiting it to a few specific cases.
* lavf: do not use the parser duration for videoAnton Khirnov2014-04-221-6/+0
| | | | | The parser has no way of knowing video duration, and therefore no video parsers set it.
* lavf: add an AVStream field for exporting stream-global side dataAnton Khirnov2014-03-241-1/+7
|
* avformat: Report the duration analysis reachedLuca Barbato2014-03-111-1/+2
|
* lavf: ignore attachment streams for interleaving purposesAnton Khirnov2014-02-041-0/+1
| | | | Those streams should never get any packets by definition.
* lavf: include 60 fps in guessed standard frame ratesJanne Grunau2014-01-311-2/+2
| | | | | Due to what looks like an off-by-one error 60 * 12 * 1001 / 12 * 1001 is not tested as standard frame rate in avformat_find_stream_info().
* avformat: utils: Refactor duplicated PRINT macroDiego Biurrun2014-01-291-31/+23
|
* avformat: utils: K&R formatting cosmeticsDiego Biurrun2014-01-261-776/+910
| | | | Also adjust some comment wording / spelling and reorder header #includes.
* lavf: make av_probe_input_buffer more robustAnton Khirnov2014-01-131-2/+1
| | | | | | | Always use the actually read size as the offset instead of making possibly invalid assumptions. Addresses: CVE-2012-6618
* lavf: use a fixed width typeAnton Khirnov2014-01-131-1/+1
| | | | It's shorter and more consistent with the rest of the code.
* lavf: simplify handling of offset in av_probe_input_buuffer()Anton Khirnov2014-01-131-6/+4
|
* lavf: remove a pointless checkAnton Khirnov2014-01-061-2/+1
| | | | AVStream.codec is always non-NULL
* lavf: remove an unneeded call to avcodec_get_frame_defaults().Anton Khirnov2013-12-111-1/+0
| | | | avcodec_decode_*() resets the frame itself.
* Replace all uses of avcodec_free_frame with av_frame_free().Anton Khirnov2013-12-111-1/+1
|
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-231-0/+2
|
* Replace all instances of avcodec_alloc_frame() with av_frame_alloc().Anton Khirnov2013-11-161-1/+1
|
* lavf: improve support for AVC-Intra files.Reimar Döffinger2013-11-141-0/+102
| | | | | | | | Generate extradata with SPS/PPS based on container dimensions. Authors of this commit are: Reimar and Thomas Mundt Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: do not use int to store an int64Anton Khirnov2013-11-011-1/+1
|
* lavf: remove unreliable timestamp guessing heuristicAnton Khirnov2013-10-281-22/+0
|
* lavf: Avoid setting avg_frame_rate if delta_dts is negativeMartin Storsjö2013-09-221-1/+2
| | | | | | | | | This avoids setting avg_frame_rate to invalid (negative) values. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Use av_reallocp() where suitableAlexandra Khirnova2013-09-181-1/+2
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: Make probe_codec return an error codeAlexandra Khirnova2013-09-161-7/+14
| | | | | | This allows handling errors from av_realloc properly. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Use av_reallocp_array() where suitableAlexandra Khirnova2013-09-101-10/+8
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: fix the comparison in an overflow checkAnton Khirnov2013-09-071-1/+1
| | | | | | CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavf: avoid integer overflow when estimating bitrateAnton Khirnov2013-09-021-2/+7
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavf: move a variable declaration to the block where it's usedAnton Khirnov2013-09-021-2/+2
|
* Disable deprecation warnings for cases where a replacement is availableDiego Biurrun2013-08-021-0/+3
|
* lavf: Don't interpret just slightly broken timestamps as wraparoundMichael Niedermayer2013-07-291-2/+3
| | | | | | | This avoids breaking some slightly incorrect (dts > pts) timestamps in sample HLS streams from Apple. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Make sure avg_frame_rate can be calculated without integer overflowMartin Storsjö2013-07-151-0/+3
| | | | | | | | | If either of the deltas is too large for the multiplications to succeed, don't use this for setting the avg frame rate. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Cc: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* avf: move url utility functions in a separate fileLuca Barbato2013-06-161-113/+0
|
* avf: move ff_write_chained to mux.cLuca Barbato2013-06-161-18/+0
|
* avf: move riff tags accessors where they belongLuca Barbato2013-06-161-9/+0
|
* avf: move ff_http_match_no_proxy to networkLuca Barbato2013-06-161-54/+0
| | | | It is only used by network protocols.
* avf: split off format register and lookup functionLuca Barbato2013-06-161-146/+0
|
* lavf: preserve side data when parsing packets.Anton Khirnov2013-05-281-0/+7
|
* Remove commented-out debug #define cruftDiego Biurrun2013-05-161-2/+0
|
* avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriateDiego Biurrun2013-05-041-5/+5
|
* silly typo fixesDiego Biurrun2013-05-031-3/+3
|
* lavf: make sure stream probe data gets freed.Anton Khirnov2013-04-041-0/+1
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavf: sanity check size in av_get/append_packet().Anton Khirnov2013-03-151-19/+49
| | | | | | To avoid allocating ridiculous amounts of memory for corrupted files, read the input in chunks limited to filesize or an arbitrary large amount when that is not known (chosen to be 50M).
* lavf: remove disabled FF_API_R_FRAME_RATE cruftAnton Khirnov2013-03-111-59/+0
|
* lavf: remove disabled FF_API_AV_GETTIME cruftAnton Khirnov2013-03-111-7/+0
|
OpenPOWER on IntegriCloud