summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAge
* avformat: do not require frame_size for Speex.Justin Ruggles2011-10-20
| | | | | Having it there forces decoding of a frame in order to get frame_size, but it is not really needed for proper demuxing or decoding.
* lavf: add avformat_new_stream as a replacement for av_new_stream.Anton Khirnov2011-10-19
| | | | It takes a codec parameter, thus enabling codec-specific defaults.
* lavf: deprecate AVFormatContext.file_sizeAnton Khirnov2011-10-17
| | | | It's too unreliable to be useful. avio_size() should be called instead.
* avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.Justin Ruggles2011-10-13
| | | | This will prevent seeking by bytes for formats that cannot handle this.
* avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.Justin Ruggles2011-10-13
| | | | | This prevents flushing the packet buffer when the input format does not support seeking.
* lavf: fix signed overflow in avformat_find_stream_info()Mans Rullgard2011-10-08
| | | | | | | | | | On the first iteration through this code, last_dts is always INT64_MIN (AV_NOPTS_VALUE) and the subtraction overflows in an invalid manner. Although the result is only used if the input values are valid, performing the subtraction is still not allowed in a strict environment. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: Avoid using av_malloc(0) in av_dump_formatMartin Storsjö2011-09-30
| | | | | | | On OS X, av_malloc(0) returns pointers that cause crashes when freed. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggdec: add support for Xiph's CELT codecNicolas George2011-09-26
| | | | | | | This patch also introduces CODEC_ID_CELT. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: do not set codec_tag for rawvideoMans Rullgard2011-09-25
| | | | | | | | | | | | If the demuxer did not set a codec_tag, there is none and inventing one makes no sense. This change stops the rawvideo "decoder" over-writing user-supplied pixfmt with one derived from the codec_tag. The pixfmt-codec_tag-pixfmt round-trip is lossy since several pixfmts map to the same codec_tag. This fixes fate-lavf-pixfmt with avfilter disabled. Signed-off-by: Mans Rullgard <mans@mansr.com>
* prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()Diego Biurrun2011-09-23
|
* lavf: Fix context pointer in av_open_input_stream when avformat_open_input failsDavid Goldwich2011-09-19
| | | | | Signed-off-by: David Goldwich <david.goldwich@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf utils: Remove write-only variableAlex Converse2011-09-14
|
* lavf utils: Rename shadowing variableAlex Converse2011-09-14
|
* lavf utils: Fix bad indentation.Alex Converse2011-08-23
|
* lavf: add avformat_query_codec().Anton Khirnov2011-08-16
| | | | It allows to check if a given codec can be written into a container.
* lavf: Add an option to discard corrupted framesZohar Kelrich2011-08-02
| | | | | Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* probe: Fix insane flow control.Alex Converse2011-07-29
| | | | A loop control variable was shadowed inside the loop and never updated.
* lavf: rename enc variable in utils.c:has_codec_parameters()Stefano Sabatini2011-07-17
| | | | | | | Rename it to "avctx", the old name was confusing as the function is used also with decoder contexts. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf/utils: drop av_ prefixes from static functions.Anton Khirnov2011-07-15
|
* avformat_open_input(): Add braces to shut up gcc warning.Diego Biurrun2011-07-14
| | | | | libavformat/utils.c:599: warning: missing braces around initializer libavformat/utils.c:599: warning: (near initialization for ‘ap.time_base’)
* lavf: fix invalid reads in avformat_find_stream_info()Anton Khirnov2011-07-14
|
* lavf: fix segfault in av_open_input_stream()Anton Khirnov2011-07-13
| | | | ic is NULL in case of error.
* lavf: Cleanup try_decode_frame() logic.Alex Converse2011-07-13
| | | | This fixes AAC playback in ffplay.
* Add a check for strptime().Anton Khirnov2011-07-13
| | | | It's an XSI extension, not available on some supported systems.
* lavf: factor out conversion of ISO8601 string to unix timeAnton Khirnov2011-07-13
|
* lavc: make avcodec_alloc_context3 officially public.Anton Khirnov2011-07-10
| | | | Deprecate avcodec_alloc_context/2.
* lavf: add avformat_find_stream_info()Anton Khirnov2011-07-10
| | | | It supports passing options to codecs.
* lavf: update AVStream.nb_frames when muxing.Anton Khirnov2011-07-08
|
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: restore old behavior for custom AVIOContex with an AVFMT_NOFILE format.Anton Khirnov2011-07-02
| | | | | | | | | | av_open_input_stream used to allow this, even though it makes no sense. Make it just print a warning instead of failing, thus restoring compatibility. Note that avformat_open_input() will still reject this combination. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: use the correct pointer in av_open_input_stream().Anton Khirnov2011-07-02
|
* Add support for aac streams in mp4/mov without extradata.Benjamin Larsson2011-06-30
|
* av_find_stream_info: simplify EAGAIN handling.Ami Fischman2011-06-29
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: prevent crash in av_open_input_file() if ap == NULL.Ronald S. Bultje2011-06-18
| | | | Needed for proper behaviour in our old API compatibility code.
* lavf: add a forgotten NULL check in convert_format_parameters().Anton Khirnov2011-06-18
|
* lavf: add avformat_write_header() as a replacement for av_write_header().Anton Khirnov2011-06-16
| | | | It supports more convenient setting of AVOptions.
* Deprecate av_open_input_* and remove their uses.Anton Khirnov2011-06-16
| | | | Deprecate the last remaining member of AVFormatParameters.
* lavf: add avformat_open_input() as a replacement for av_open_input_*Anton Khirnov2011-06-16
| | | | Add support for demuxer private options.
* utils: Drop pointless '#if 1' preprocessor directive.Diego Biurrun2011-06-13
|
* lavf: initialise reference_dts in av_estimate_timings_from_pts.Michael Niedermayer2011-06-13
| | | | | | Fixes issue2437. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.Diego Biurrun2011-06-10
|
* lavf: make compute_pkt_fields2() return meaningful error valuesStefano Sabatini2011-06-09
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: don't try to free private options if priv_data is NULL.Anton Khirnov2011-06-08
| | | | | This might happen if there was an error before priv_data was allocated and result in segfault.
* Remove all uses of now deprecated metadata functions.Anton Khirnov2011-06-08
|
* lavf,lavc: free avoptions in a generic way.Anton Khirnov2011-06-05
| | | | | | It's simpler and less error-prone. Fixes some memleaks along the way.
* Mark some variables with av_unusedMans Rullgard2011-06-03
| | | | | | | Most of these variables are only used in av_dlog statements, some are required but not used by other macros. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: initialize demuxer private options.Anton Khirnov2011-05-26
|
* avformat: Add fpsprobesize as an AVOption.Alex Converse2011-05-25
|
* Fix end time of last chapter in compute_chapters_endJohn Stebbins2011-05-25
| | | | | | Parenthesis are misplaced in calculation of max_time. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: do not fall back to binary/generic searchVladimir Pantelic2011-05-17
| | | | | | | | | | asf_read_seek() inside the asf demuxer already does the right thing, it tries the index and if that fails it uses binary search. If binary search is called from outside of asfdec.c it will fail because the asf code cannot clean up after itself. Therefore introduce AVFMT_NOBINSEARCH that prevents the seek code to fallback to binary search and AVFMT_NOGENSEARCH that prevents the seek code to fallback to generic search.