aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * avio: rename url_fopen/fclose -> avio_open/close.Anton Khirnov2011-02-231-3/+3
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In the name of consistency: get_byte -> avio_r8 get_<type> -> avio_r<type> get_buffer -> avio_read get_partial_buffer will be made private later get_strz is left out becase I want to change it later to return something useful. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-201-7/+7
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * Move find_info_tag to lavu and add av_ prefix to itAnton Khirnov2011-02-171-35/+5
| | | | | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
| * Deprecate parse_date() in favor of av_parse_time().Stefano Sabatini2011-02-161-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>
| * lavf: add av_ prefix to dump_format()Anton Khirnov2011-02-161-0/+10
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * 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>
| * Merge libavcore into libavutilReinhard Tartler2011-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
| * lavf: add AV_DISPOSITION_CLEAN_EFFECTS flagAnssi Hannula2011-02-141-0/+2
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * lavf: print stream disposition in dump_stream_formatAnssi Hannula2011-02-131-0/+18
| | | | | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
| * make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIREDPeter Ross2011-02-101-0/+2
| | | | | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
| * Frame-based multithreading framework using pthreadsAlexander Strange2011-02-091-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-081-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>
| * lavf: simplify pb parameter of ff_probe_input_bufferAnssi Hannula2011-02-081-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>
| * Make av_set_pts_info keep previous time base if new one is invalid.Reimar Döffinger2011-02-061-7/+10
| | | | | | | | | | | | Fixes issue 2475. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * libavformat: Add a function for freeing an AVFormatContextMartin Storsjö2011-02-041-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>
| * add ff_index_search_timestamp and ff_add_index_entryPeter Ross2011-02-031-15/+30
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * Make ff_interleave_compare_dts static to utils.c.Diego Elio Pettenò2011-01-251-1/+1
| | | | | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* | Fix av_find_best_stream when providing a wanted streamMarton Balint2011-03-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | In the main loop, stream_number is incremented after checking the stream type, so the search usually will not find the wanted stream. This patch eliminates the useless stream_number variable and introduces a new one, called real_stream_index to store the real stream index of the current stream, no matter if we are looping through all the streams or only the streams of a program. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix av_find_best_stream when decoder_ret is given and using a related streamMarton Balint2011-03-111-1/+1
| | | | | | | | | | | | Yet another fix for the code originally designed for use without related_stream. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avio: move ff_rewind_with_probe_data from avio.h to avio_internal.hAnton Khirnov2011-03-081-1/+2
| | | | | | | | | | | | | | also change its prefix to ffio Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit f1ef2cd9ed22be231bb4da8d2f93d9a0c7877aa7)
* | avio: avio_ prefix for url_fsizeAnton Khirnov2011-03-081-3/+3
| | | | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 76aa876e69cf78a40821e66dec0a1006e4eb23ec)
* | avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-051-3/+3
| | | | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit a2704c9712ad35cc22e7e0d8a79b581c07fa383b)
* | libavformat: Add av_pkt_dump{, _log}2, taking an AVStream parameterMartin Storsjö2011-03-031-7/+19
| | | | | | | | | | | | | | | | This removes a fixme issue, by allowing the av_pkt_dump functions to use the correct time base. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> (cherry picked from commit 863c471638fa667e6e5c5df059b67af263e1cd40)
* | avio: avio_ prefix for url_fseekAnton Khirnov2011-03-031-7/+7
| | | | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 6b4aa5dac8f41aa452d0ce9a1bede9e59a303060)
* | avio: rename url_fopen/fclose -> avio_open/close.Anton Khirnov2011-02-231-3/+3
| | | | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 22a3212e32b696028e21f00871f3cb48c044029d)
* | avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the name of consistency: get_byte -> avio_r8 get_<type> -> avio_r<type> get_buffer -> avio_read get_partial_buffer will be made private later get_strz is left out becase I want to change it later to return something useful. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit b7effd4e8338f6ed5bda630ad7ed0809bf458648)
* | avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-201-7/+7
| | | | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit ae628ec1fd7f54c102bf9e667a3edd404b9b9128)
* | 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