History | View | Annotate | Download (125 KB)
Fix issue2437
Reimplement stream probe try #2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Partial rewrite stream probe code.Fix issue2312.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavf: inspect more frames for fps when container time base is coarse
As per issue2629, most 23.976fps matroska H.264 files are incorrectlydetected as 24fps, as the matroska timestamps usually have onlymillisecond precision.
Fix that by doubling the amount of timestamps inspected for frame rate...
Merge remote branch 'qatar/master'
lavf: make compute_chapters_end less picky.
In particular, now it assumes thata) chapters are chronologically orderedb) chapters have the same timebasesc) duration of the stream is knownand asserts if any of these is not met.
Make it properly deal with harsher conditions....
lavf: make compute_pkt_fields2() return meaningful error values
Merge remote-tracking branch 'newdev/master'
Use audio_service_type to set stream disposition.
avio: make av_url_read_fseek/fpause internal.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <mans@mansr.com>
lavf: fix function name in compute_pkt_fields2 av_dlog message
Revert "replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION"
This reverts commit 29ba091136a5e04574f7bfc1b17536c923958f6f.
Revert "use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*"
This reverts commit a03be6e1ba4cbf9984b0bbdb674704bbb2da6713.
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 function
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 codes
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()
Help debugging timestamp issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>(cherry picked from commit d541c8b468c12892fe7b7e655e1ed45e11e2166d)
lavf: enable av_dlog() in compute_pkt_fields2()
Turns a comment into an av_dlog() instruction, also add a commentedissues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>(cherry picked from commit 77f21ce4641b53f3277ba30ca3d009b6250fd9ea)
avio: make url_setbufsize internal.
use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*
replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION
also update the multiple inclusion guards in config.h|mak
Use AVERROR_EXIT with url_interrupt_cb.
Functions interrupted by url_interrupt_cb should not be restarted.Therefore using AVERROR was wrong, as it did not allow to distinguishwhen the underlying system call was interrupted and actually needed to be...
lavf/utils: dont't explicitly check AVIOContext.error
The error should be caught in write_packet()/write_trailer()
Fix av_find_best_stream when providing a wanted stream
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...
Fix av_find_best_stream when decoder_ret is given and using a related stream
Yet another fix for the code originally designed for use without related_stream.
avio: move ff_rewind_with_probe_data from avio.h to avio_internal.h
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_fsize
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>(cherry picked from commit 76aa876e69cf78a40821e66dec0a1006e4eb23ec)
avio: add avio_tell macro as a replacement for url_ftell
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>(cherry picked from commit a2704c9712ad35cc22e7e0d8a79b581c07fa383b)
libavformat: Add av_pkt_dump{, _log}2, taking an AVStream parameter
This removes a fixme issue, by allowing the av_pkt_dump functionsto use the correct time base.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>(cherry picked from commit 863c471638fa667e6e5c5df059b67af263e1cd40)
avio: avio_ prefix for url_fseek
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>(cherry picked from commit 6b4aa5dac8f41aa452d0ce9a1bede9e59a303060)
avio: rename url_fopen/fclose -> avio_open/close.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>(cherry picked from commit 22a3212e32b696028e21f00871f3cb48c044029d)
avio: avio_ prefixes for get_* functions
In the name of consistency:get_byte -> avio_r8get_<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...
avio: rename ByteIOContext to AVIOContext.
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 it
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>(cherry picked from commit ab0287fcbdebc8ff416214535d7ee8424406990e)
Deprecate parse_date() in favor of av_parse_time().
The new av_parse_time() is created in libavutil/parseutils.h, all theinternal functions used by parse_date are moved tolibavutil/parseutils.c and made static.
Signed-off-by: Mans Rullgard <mans@mansr.com>...
lavf: add av_ prefix to dump_format()
Signed-off-by: Mans Rullgard <mans@mansr.com>(cherry picked from commit 610219a598095f938705f200dfe3946455ef871a)
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Fix av_find_best_stream when using a program
The current implementation has a bug, it is returning the stream indexin the found program, and not the stream index in the list of allstreams. The attached patch fixes this issue.
Merge libavcore into libavutil
Done to keep ABI compatible. Otherwise this is just silly
lavf: add AV_DISPOSITION_CLEAN_EFFECTS flag
Signed-off-by: Mans Rullgard <mans@mansr.com>(cherry picked from commit 24a83bd10a1ed56cadd2c475b839887752f23183)
It is pretty hopeless that other considerable projects will adoptlibavutil alone in other projects. Projects that need small footprintare better off with more specialized libraries such as gnulib or ratherjust copy the necessary parts that they need. With this in mind, nobody...
Better threshold for the gcd based r_frame_rate calculation.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.
lavf: print stream disposition in dump_stream_format
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_*_IMPAIRED
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>(cherry picked from commit 52091491575f015c09a32a745de4f7f7592fe6d4)
Frame-based multithreading framework using pthreads
See doc/multithreading.txt for details on use in codecs.
lavf: rename ff_probe_input_buffer to make it public
It is useful for applications that hand input data directly to lavf viaa ByteIOContext.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>(cherry picked from commit 3940caad02fbc4f075e77bc605849b1d84ba1b8e)
lavf: simplify pb parameter of ff_probe_input_buffer
There is no need to pass the ByteIOContext via a pointer to a pointeranymore.
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.
Fixes issue 2475.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>(cherry picked from commit b3190529dfefe3226302b23e76e16c631cde6649)
libavformat: Add a function for freeing an AVFormatContext
This function is useful for freeing data structures allocated bymuxers, 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_entry
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>(cherry picked from commit e6fb5a4f78a67ed815e39ba8ac3893fd631b9b1a)
Make ff_interleave_compare_dts static to utils.c.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>(cherry picked from commit 101e1f6ff90c3365bfde05469ae26d2ee7f71f3e)
Clarify timestamps related error messages in compute_pkt_fields2().
Originally committed as revision 26308 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix assertion fail on audio files with invalid sample rates,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.
Originally committed as revision 26239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Issue more explicit error messages in compute_pkt_fields2().
Originally committed as revision 26238 to svn://svn.ffmpeg.org/ffmpeg/trunk
In av_close_input_stream(), flush the packet queue before to actuallyclose the stream.
This way the flushed packets can still reference the still unclosedformat context.
In particular this fixes a spurious error issued when closing thevideo4linux2 buffer in mmap_release_buffer(), which tries to access...
Add AVOption support for muxers.
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.
Originally committed as revision 26104 to svn://svn.ffmpeg.org/ffmpeg/trunk
Allow output formats without any streams.
Required for future metadata format.
Originally committed as revision 26100 to svn://svn.ffmpeg.org/ffmpeg/trunk
add ff_find_stream_index
Originally committed as revision 26092 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix crash if invalid bit-rate was read from file.Fixes issue 2426.
Patch by David Czech, davidczech510 gmail
Originally committed as revision 26061 to svn://svn.ffmpeg.org/ffmpeg/trunk
add subtitle codec autodetection
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 #2020
Originally committed as revision 25824 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add av_append_packet function, to be used in code that merges packetsto 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_base
Originally committed as revision 25758 to svn://svn.ffmpeg.org/ffmpeg/trunk
allow passing subtitles header between decoder and encoder
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}format
Originally committed as revision 25738 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumSampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
lavf: simplify setting the encoder ident tag.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 functions
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 api
Originally committed as revision 25489 to svn://svn.ffmpeg.org/ffmpeg/trunk
add FF_API_PARSE_FRAME_PARAM define to disable the deprecatedparse_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() function
Originally committed as revision 25482 to svn://svn.ffmpeg.org/ffmpeg/trunk