aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move find_info_tag to lavu and add av_ prefix to itAnton Khirnov2011-02-181-35/+5
| | | | | | | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit ab0287fcbdebc8ff416214535d7ee8424406990e)
* | Deprecate parse_date() in favor of av_parse_time().Stefano Sabatini2011-02-181-116/+8
| | | | | | | | | | | | | | | | | | The new av_parse_time() is created in libavutil/parseutils.h, all the internal functions used by parse_date are moved to libavutil/parseutils.c and made static. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit f6c7375a175ac649558aefab14f3895b2cb469aa)
* | lavf: add av_ prefix to dump_format()Anton Khirnov2011-02-181-0/+10
| | | | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 610219a598095f938705f200dfe3946455ef871a)
* | Fix av_find_best_stream when using a programBalint Marton2011-02-161-1/+1
| | | | | | | | | | | | | | | | | | The current implementation has a bug, it is returning the stream index in the found program, and not the stream index in the list of all streams. The attached patch fixes this issue. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 22ec6b738f1608e4b959fb655cf37c3343ec7e9f)
* | Merge libavcore into libavutilReinhard Tartler2011-02-161-1/+1
| | | | | | | | Done to keep ABI compatible. Otherwise this is just silly
* | lavf: add AV_DISPOSITION_CLEAN_EFFECTS flagAnssi Hannula2011-02-151-0/+2
| | | | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 24a83bd10a1ed56cadd2c475b839887752f23183)
* | Better threshold for the gcd based r_frame_rate calculation.Michael Niedermayer2011-02-151-1/+1
| | | | | | | | | | | | Fixes Gilmore Girls_Net 5_2011_01_08_16_10_53.wtv and RTL GP- WK Superbike - Qatar_RTL7_2009_03_14_15_49_23.wtv. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf: print stream disposition in dump_stream_formatAnssi Hannula2011-02-141-0/+18
| | | | | | | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit 3c33c0e26325f189dbf7f212f8e9042feb83bfb0)
* | make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIREDPeter Ross2011-02-111-0/+2
| | | | | | | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit 52091491575f015c09a32a745de4f7f7592fe6d4)
* | Frame-based multithreading framework using pthreadsAlexander Strange2011-02-111-0/+6
| | | | | | | | | | | | See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | lavf: rename ff_probe_input_buffer to make it publicAnssi Hannula2011-02-091-2/+2
| | | | | | | | | | | | | | | | It is useful for applications that hand input data directly to lavf via a ByteIOContext. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 3940caad02fbc4f075e77bc605849b1d84ba1b8e)
* | lavf: simplify pb parameter of ff_probe_input_bufferAnssi Hannula2011-02-091-4/+4
| | | | | | | | | | | | | | | | There is no need to pass the ByteIOContext via a pointer to a pointer anymore. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit aad216fd7e3209fe0a865d8751e680925f6654d3)
* | 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