aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Make av_set_pts_info keep previous time base if new one is invalid.Reimar Döffinger2011-02-091-7/+10
| | | | | | | | | | | | | | Fixes issue 2475. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit b3190529dfefe3226302b23e76e16c631cde6649)
* | libavformat: Add a function for freeing an AVFormatContextMartin Storsjö2011-02-061-3/+8
| | | | | | | | | | | | | | | | This function is useful for freeing data structures allocated by muxers, which currently have to be freed manually by the caller. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit f124b087eea442b65d809582527dfb5092a3463c)
* | add ff_index_search_timestamp and ff_add_index_entryPeter Ross2011-02-061-15/+30
| | | | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit e6fb5a4f78a67ed815e39ba8ac3893fd631b9b1a)
* | Make ff_interleave_compare_dts static to utils.c.Diego Elio Pettenò2011-01-261-1/+1
|/ | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit 101e1f6ff90c3365bfde05469ae26d2ee7f71f3e)
* Clarify timestamps related error messages in compute_pkt_fields2().Stefano Sabatini2011-01-111-2/+2
| | | | Originally committed as revision 26308 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix assertion fail on audio files with invalid sample rates,Daniel Kang2011-01-061-1/+1
| | | | | | | | fixes issue 2475. Patch by Daniel Kang, daniel.d.kang at gmail Originally committed as revision 26240 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert previous commit, as it was not meant to be pushed.Stefano Sabatini2011-01-061-4/+2
| | | | Originally committed as revision 26239 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Issue more explicit error messages in compute_pkt_fields2().Stefano Sabatini2011-01-061-2/+4
| | | | Originally committed as revision 26238 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In av_close_input_stream(), flush the packet queue before to actuallyStefano Sabatini2011-01-061-1/+1
| | | | | | | | | | | | | close the stream. This way the flushed packets can still reference the still unclosed format context. In particular this fixes a spurious error issued when closing the video4linux2 buffer in mmap_release_buffer(), which tries to access the file descriptor of an already closed file. Originally committed as revision 26237 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVOption support for muxers.Anssi Hannula2011-01-021-0/+4
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26195 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_find_best_stream.Nicolas George2010-12-271-0/+61
| | | | Originally committed as revision 26104 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow output formats without any streams.Anton Khirnov2010-12-271-2/+2
| | | | | | Required for future metadata format. Originally committed as revision 26100 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add ff_find_stream_indexPeter Ross2010-12-261-0/+9
| | | | Originally committed as revision 26092 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix crash if invalid bit-rate was read from file.David Czech2010-12-201-1/+2
| | | | | | | | Fixes issue 2426. Patch by David Czech, davidczech510 gmail Originally committed as revision 26061 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add subtitle codec autodetectionAurelien Jacobs2010-12-041-0/+2
| | | | Originally committed as revision 25884 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In av_find_stream_info, decode more h264 to get correct delay, issue #2020Baptiste Coudurier2010-11-251-1/+1
| | | | Originally committed as revision 25824 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_append_packet function, to be used in code that merges packetsReimar Döffinger2010-11-211-0/+15
| | | | | | to allow palette handling without using PaletteControl. Originally committed as revision 25777 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_find_stream_info(): set subtitle codec time_baseAurelien Jacobs2010-11-161-1/+2
| | | | Originally committed as revision 25758 to svn://svn.ffmpeg.org/ffmpeg/trunk
* allow passing subtitles header between decoder and encoderAurelien Jacobs2010-11-131-1/+7
| | | | Originally committed as revision 25745 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lavf/utils: use av_{i/o}format_next() instead of first_{i/o}formatAnton Khirnov2010-11-131-8/+6
| | | | Originally committed as revision 25738 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-1/+1
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lavf: simplify setting the encoder ident tag.Anton Khirnov2010-10-161-10/+1
| | | | | | patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25504 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_SYMVER define to disable symver compatibility functionsAurelien Jacobs2010-10-151-1/+1
| | | | Originally committed as revision 25491 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_FIRST_FORMAT define to drop deprecated first_?format from public apiAurelien Jacobs2010-10-151-0/+6
| | | | Originally committed as revision 25489 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_PARSE_FRAME_PARAM define to disable the deprecatedAurelien Jacobs2010-10-151-1/+1
| | | | | | parse_image_size() and parse_frame_rate() public functions Originally committed as revision 25485 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_URL_SPLIT define to disable the deprecated ff_url_split() functionAurelien Jacobs2010-10-151-1/+1
| | | | Originally committed as revision 25482 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_GUESS_FORMAT define to disable the deprecated guess_format()Aurelien Jacobs2010-10-151-2/+2
| | | | | | and guess_stream_format() public functions Originally committed as revision 25480 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move av_find_stream_info() info struct to AVStream to avoid messy (re)allocationAurelien Jacobs2010-10-081-54/+35
| | | | Originally committed as revision 25418 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless local variableAurelien Jacobs2010-10-071-3/+2
| | | | Originally committed as revision 25394 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless local allocated start_time arrayAurelien Jacobs2010-10-071-14/+7
| | | | Originally committed as revision 25393 to svn://svn.ffmpeg.org/ffmpeg/trunk
* properly check for FF_API_MAX_STREAMS instead of LIBAVFORMAT_VERSION_MAJORAurelien Jacobs2010-10-061-6/+7
| | | | Originally committed as revision 25382 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add new streams API without MAX_STREAMS limitAurelien Jacobs2010-10-061-0/+10
| | | | | | (disabled until next major bump) Originally committed as revision 25381 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dynamically use nb_streams instead of static use of MAX_STREAMSAurelien Jacobs2010-10-061-8/+33
| | | | Originally committed as revision 25380 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move handling of ID3v2 to common utils.c code, reducing code duplicationReimar Döffinger2010-10-061-2/+16
| | | | | | and supporting it for more formats, fixing issue 2258. Originally committed as revision 25378 to svn://svn.ffmpeg.org/ffmpeg/trunk
* find_info_tag: Make sure the output buffer is null terminatedMartin Storsjö2010-10-051-1/+1
| | | | Originally committed as revision 25353 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add the CODEC_CAP_CHANNEL_CONF capability code and addBenjamin Larsson2010-10-021-1/+10
| | | | | | | | | that flag to the dca codec. This capability when set will make sure the codec will initialize the channel configuration instead of trusting the container. This fixes issue 2137 and issue 850. Originally committed as revision 25320 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix index_entries pos:Michael Chinen2010-09-271-4/+0
| | | | | | | | It was being set wrong for files with data_offset > 0 Patch by Michael Chinen, mchinen gmail Originally committed as revision 25239 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AVOptions from libavcodec to libavutilMichael Niedermayer2010-09-261-1/+1
| | | | Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix formatting for negative start times (issue 2139).Christian d'Heureuse2010-09-071-1/+1
| | | | | | Patch by Christian d'Heureuse, chdh inventec ch Originally committed as revision 25063 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move stream info arrays into a struct to ease future dynamic allocationAurelien Jacobs2010-09-051-32/+28
| | | | Originally committed as revision 25045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avformat: free decryption key in av_close_input_stream()Måns Rullgård2010-08-241-0/+1
| | | | Originally committed as revision 24899 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make parse_key_value from httpauth a common lavf internal functionMartin Storsjö2010-08-191-0/+54
| | | | Originally committed as revision 24832 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rename LAVF_API_* defines to FF_API_* to clarify that it is not public APIAurelien Jacobs2010-08-181-6/+6
| | | | Originally committed as revision 24825 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add LAVF_API_OLD_METADATA define to disable the deprecated metadata APIAurelien Jacobs2010-08-171-6/+6
| | | | Originally committed as revision 24818 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix segv when stream copy and validate_tag fails, st->codec->codec is not setBaptiste Coudurier2010-08-121-2/+2
| | | | Originally committed as revision 24782 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix mem leak when trying to open a non-existing image file (issue 2126).Przemysław Sobala2010-08-101-0/+1
| | | | | | Patch by Przemysław Sobala, psobala wp-sa pl Originally committed as revision 24757 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make hex_to_data a lavf internal functionMartin Storsjö2010-08-091-0/+28
| | | | | | This is useful for other future RTP depacketizers Originally committed as revision 24747 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()Stefano Sabatini2010-07-261-2/+4
| | | | | | | | | | | in favor of the newly added corresponding functions av_parse_video_size() and av_parse_video_rate() defined in libavcore/parseutils.h. This change also adds a linking-time dependency of libavcodec and of libavfilter on libavcore. Originally committed as revision 24518 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AVStream->codec_info_nb_frames increment after try_decode_frameBaptiste Coudurier2010-07-031-2/+1
| | | | Originally committed as revision 24017 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In av_find_stream_info, decode at least 4 h.264 frames to be able to guess ↵Baptiste Coudurier2010-07-031-2/+8
| | | | | | delay. Originally committed as revision 24014 to svn://svn.ffmpeg.org/ffmpeg/trunk