aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | lavf: fix function name in compute_pkt_fields2 av_dlog messageStefano Sabatini2011-03-181-1/+1
| |
* | Revert "replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION"Michael Niedermayer2011-03-171-1/+1
| | | | | | | | This reverts commit 29ba091136a5e04574f7bfc1b17536c923958f6f.
* | Revert "use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*"Michael Niedermayer2011-03-171-1/+1
| | | | | | | | This reverts commit a03be6e1ba4cbf9984b0bbdb674704bbb2da6713.
* | Merge remote-tracking branch 'newdev/master'Michael Niedermayer2011-03-171-3/+54
|\| | | | | | | | | | | | | | | | | | | Conflicts: Changelog doc/APIchanges doc/optimization.txt libavformat/avio.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: Make make_absolute_url a lavf internal functionMartin Storsjö2011-03-171-0/+51
| | | | | | | | | | | | This is shared by both applehttp demuxer and protocol. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * lavf: make av_interleave_packet() return meaningful error codesStefano Sabatini2011-03-171-3/+4
| | | | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit c5dcb3d493a6bb73efeb8bfae24f5cc31908201f) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
| * lavf: enable av_dlog message in av_interleaved_write_frame()Stefano Sabatini2011-03-171-1/+2
| | | | | | | | | | | | | | | | | | Help debugging timestamp issues. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d541c8b468c12892fe7b7e655e1ed45e11e2166d) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
| * lavf: enable av_dlog() in compute_pkt_fields2()Stefano Sabatini2011-03-171-1/+5
| | | | | | | | | | | | | | | | | | | | Turns a comment into an av_dlog() instruction, also add a commented issues. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 77f21ce4641b53f3277ba30ca3d009b6250fd9ea) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
| * avio: make url_setbufsize internal.Anton Khirnov2011-03-161-1/+1
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*Janne Grunau2011-03-161-1/+1
| |
| * replace FFMPEG with LIBAV in FFMPEG_CONFIGURATIONJanne Grunau2011-03-161-1/+1
| | | | | | | | also update the multiple inclusion guards in config.h|mak
* | lavf: make av_interleave_packet() return meaningful error codesStefano Sabatini2011-03-171-3/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf: enable av_dlog() in compute_pkt_fields2()Stefano Sabatini2011-03-171-1/+5
| | | | | | | | | | | | | | Turns a comment into an av_dlog() instruction, also add a commented issues. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf: enable av_dlog message in av_interleaved_write_frame()Stefano Sabatini2011-03-171-1/+2
| | | | | | | | | | | | Help debugging timestamp issues. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'newdev/master'Michael Niedermayer2011-03-151-1/+1
|\| | | | | | | Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Use AVERROR_EXIT with url_interrupt_cb.Nicolas George2011-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Functions interrupted by url_interrupt_cb should not be restarted. Therefore using AVERROR(EINTR) was wrong, as it did not allow to distinguish when the underlying system call was interrupted and actually needed to be restarted. This fixes roundup issues 2657 and 2659 (ffplay not exiting for streamed content). Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * lavf/utils: dont't explicitly check AVIOContext.errorAnton Khirnov2011-03-151-8/+0
| | | | | | | | | | | | The error should be caught in write_packet()/write_trailer() Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * avio: move ff_rewind_with_probe_data from avio.h to avio_internal.hAnton Khirnov2011-03-071-1/+2
| | | | | | | | | | | | also change its prefix to ffio Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * avio: avio_ prefix for url_fsizeAnton Khirnov2011-03-071-3/+3
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-041-3/+3
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * libavformat: Add av_pkt_dump{, _log}2, taking an AVStream parameterMartin Storsjö2011-03-021-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>
| * avio: avio_ prefix for url_fseekAnton Khirnov2011-03-011-7/+7
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * 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)