aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-311-7/+7
| | | | | | Patch by Jean-Daniel Dupas, devlists shadowlab org Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Probe aac codecs for CODEC_ID_PROBE.Joakim Plate2010-03-311-0/+3
| | | | | | Patch by Joakim Plate, elupus ecce se Originally committed as revision 22742 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-38/+38
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix updating condition for the probe_size variable in the internalMicah F. Galizia2010-03-261-1/+7
| | | | | | | | | | | | loop of ff_probe_input_buffer(), making sure that probe_size is always set to probe_max_size in the last iteration. Also make the function return an error if we get to the max probe length and still cannot figure out what the format is. Patch by Micah Galizia micahgalizia A gmail D com. Originally committed as revision 22688 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-03-251-3/+3
| | | | Originally committed as revision 22666 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a lowercase parameter to ff_data_to_hexMartin Storsjö2010-03-251-2/+7
| | | | Originally committed as revision 22665 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_open_input_file() return AVERROR_INVALIDDATA rather thanStefano Sabatini2010-03-211-1/+1
| | | | | | | | | | | | AVERROR_NOFMT if the format is unknown / cannot be recognized. It is returned AVERROR_INVALIDDATA, in the sense that the data is invalid within what the specific libav* binary supports. That was the last remaining use of AVERROR_NOFMT, which is going to be dropped at the next libavutil major bump. Originally committed as revision 22625 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix erroneous behaviour when format probe hits end of fileMåns Rullgård2010-03-161-0/+1
| | | | | | | | | | If the format probe hits end of file, do not add the error code to the buffer position. This is obviously wrong, and with a small input file would cause a negative buffer overflow. Fixes issue 1818. Originally committed as revision 22571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rename av_read_frame_flush to ff_read_frame_flushAurelien Jacobs2010-03-151-4/+4
| | | | | | it is an internal function, not part of public API Originally committed as revision 22562 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rename av_program_add_stream_index to ff_program_add_stream_indexAurelien Jacobs2010-03-151-1/+1
| | | | | | it is an internal function, not part of public API Originally committed as revision 22561 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the NTP offset definitions to internal.hMartin Storsjö2010-03-151-3/+0
| | | | Originally committed as revision 22542 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the probe loop from av_open_input_file() into its own methodMicah F. Galizia2010-03-141-31/+66
| | | | | | | | | | | | | | | | | | | | | | | | | av_probe_input_buffer() so that it can be reused. Here are a few differences to the original way things were probed: - maximum probe buffer size can be specified as a parameter. - offset within the stream to probe from can be specified as a parameter. - instead of seeking back to the start each time a probe fails, stream data is appended to the reallocated buffer. This lowers the amount of data read from the stream (there is no repetition) and results in fewer closed and reopened streams (when seeking fails). New attempt after r22296, which was revert in r22315 due to a FATE failure. See the thread: Subject: [FFmpeg-devel] [PATCH] Move av_open_input_file probe loop to its own method Date: 2010-03-05 03:23:57 GMT Patch by Micah F. Galizia printf("%s%s@%s.%s", "micah", "galizia", "gmail", "com"). Originally committed as revision 22532 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the ntp_time function available to other parts of libavformat, as ↵Martin Storsjö2010-03-101-0/+8
| | | | | | ff_ntp_time Originally committed as revision 22438 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add special case to avoid binary search when appending index entries.Michael Niedermayer2010-03-091-0/+4
| | | | Originally committed as revision 22400 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove definition of match_ext(), which is declared under #ifdefStefano Sabatini2010-03-081-7/+0
| | | | | | HAVE_AV_CONFIG_H and so not publicly declared, and currently unused. Originally committed as revision 22353 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-03-081-5/+5
| | | | Originally committed as revision 22322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename url_split to ff_url_splitMartin Storsjö2010-03-081-1/+1
| | | | | | Since this function isn't in the public API, it should have an ff_ prefix. Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert "Move the probe loop from av_open_input_file() into its own method"Måns Rullgård2010-03-081-62/+31
| | | | | | | This reverts r22296. This change made some files to fail to open. The patch submitter has promised to investigate next week. Originally committed as revision 22315 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_find_stream_info(): Add a workaround for backwards compatible HE-AAC ↵Alex Converse2010-03-081-0/+5
| | | | | | | | | signaling. The sample rate, frame size, and channel count from the container are not reliable when backwards compatible signaling is used. Originally committed as revision 22301 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix pts->dts conversion init for non-zero initial value for pts.Daniel Kristjansson2010-03-071-1/+1
| | | | | | Patch by Daniel Kristjansson, danielk cuymedia net Originally committed as revision 22297 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the probe loop from av_open_input_file() into its own methodMicah F. Galizia2010-03-071-31/+62
| | | | | | | | | | | | | | | | | | av_probe_input_buffer() so that it can be reused. Here are a few differences to the original way things were probed: - maximum probe buffer size can be specified as a parameter. - offset within the stream to probe from can be specified as a parameter. - instead of seeking back to the start each time a probe fails, stream data is appended to the reallocated buffer. This lowers the amount of data read from the stream (there is no repetition) and results in fewer closed and reopened streams (when seeking fails). Patch by Micah F. Galizia printf("%s%s@%s.%s", "micah", "galizia", "gmail", "com"). Originally committed as revision 22296 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some missing #includesMåns Rullgård2010-03-061-0/+1
| | | | Originally committed as revision 22258 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a function ff_url_join for assembling URLsMartin Storsjö2010-03-051-0/+49
| | | | Originally committed as revision 22225 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memory leak in NUT muxerVitor Sessak2010-03-051-1/+3
| | | | Originally committed as revision 22222 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Print chapter info in dump_format().Anton Khirnov2010-02-281-0/+8
| | | | | | Patch by Anton Khirnov, wyskas gmail Originally committed as revision 22113 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Count all frames with codec_info_nb_frames not just ones with non zeroMichael Niedermayer2010-02-231-2/+1
| | | | | | duration. I hope this breaks nothing. Its needed for my fix of issue1156 Originally committed as revision 22001 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Put codec_info_nb_frames back in AVStream and print its value.Michael Niedermayer2010-02-231-6/+5
| | | | | | | This way streams with no or very few frames can be avoided during auto selection Originally committed as revision 21998 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure mp1/mp2 get their frame_size set.Michael Niedermayer2010-02-221-0/+2
| | | | | | Fixes issue1696 Originally committed as revision 21972 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure a set r_frame_rate is not overriden by a guess.Michael Niedermayer2010-02-221-3/+3
| | | | | | Also make sure we dont waste time in this case with collecting timestamps. Originally committed as revision 21957 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set lavf identification string globally in av_write_header(), ratherAnton Khirnov2010-02-161-0/+14
| | | | | | | | | than inside the muxers. Remove special handling of "encoder" tags from AVI and MP3 muxers. Patch by Anton Khirnov <wyskas gmail com>. Originally committed as revision 21850 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add flag so muxers not needing width/height can signal this.Michael Niedermayer2010-02-121-1/+1
| | | | | | Add this flag to img2 (fixes -vcodec copy to image2 in some cases) Originally committed as revision 21773 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Directly use av_rescale_rnd() instead of av_convert_ts() as this cuts theMichael Niedermayer2010-02-071-1/+3
| | | | | | number of calls to it down by 2. Originally committed as revision 21676 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_compare_ts() for interleaving per dts.Michael Niedermayer2010-02-071-7/+1
| | | | Originally committed as revision 21672 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Dont try generic seek if seek request before first index entry and backward.Michael Niedermayer2010-02-031-0/+3
| | | | | | Fixes issue1275 Originally committed as revision 21633 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Try to open decoders in av_find_stream_info() even if no packets for theMichael Niedermayer2010-02-031-0/+7
| | | | | | | stream are found. Fixes issue1385 Originally committed as revision 21630 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Increase search range if no end timestamp could be found for the durationMichael Niedermayer2010-01-311-2/+9
| | | | | | calculation. Originally committed as revision 21577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Flag to ignore dts on frames that contain pts.Michael Niedermayer2010-01-301-0/+3
| | | | | | | This works around common issues with mpeg-ps files with broken timestamps. Also allows playing the broken sample from issue1024. Originally committed as revision 21562 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix duration calculation in the presence of a single wraping of the timeline.Michael Niedermayer2010-01-271-0/+2
| | | | | | Fixes issue1714. Originally committed as revision 21485 to svn://svn.ffmpeg.org/ffmpeg/trunk
* set average frame rate in mov demuxerBaptiste Coudurier2010-01-181-1/+1
| | | | Originally committed as revision 21310 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check there is a stream before writing header.Tomas Härdin2010-01-131-0/+5
| | | | | | Patch by Tomas Härdin: $(name) punto hardin chez codemill dot se Originally committed as revision 21186 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for XXX_configuration() andStefano Sabatini2010-01-031-2/+2
| | | | | | XXX_license() functions, consistent with the rest of FFmpeg. Originally committed as revision 21005 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_match_ext() in place of the deprecated match_ext() function.Stefano Sabatini2010-01-011-2/+2
| | | | Originally committed as revision 21000 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate match_ext() in favor of av_match_ext(), and mark it forStefano Sabatini2010-01-011-0/+7
| | | | | | deletion at the next major bump. Originally committed as revision 20998 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_guess_format() in place of the deprecated guess_format().Stefano Sabatini2010-01-011-3/+3
| | | | Originally committed as revision 20994 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate guess_format() in favor of av_guess_format().Stefano Sabatini2010-01-011-0/+8
| | | | Originally committed as revision 20991 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate and mark for deletion the function guess_stream_format(),Stefano Sabatini2009-12-311-0/+2
| | | | | | | | | | and clone its code to ffserver_guess_format() in ffserver.c. guess_stream_format() is hackish since it relies on some undocumented properties of the name of the muxers (wich is currently only relevant for the ASF muxer), and has no use outside ffserver.c. Originally committed as revision 20987 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure the Metadata: header is not printed if the only metadata will notMichael Niedermayer2009-12-131-1/+1
| | | | | | be displayed. (idea from ffmbc) Originally committed as revision 20850 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move dump_metadata() to where it is in ffmbc, looks better.Michael Niedermayer2009-12-131-1/+1
| | | | Originally committed as revision 20849 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2009-12-131-1/+1
| | | | Originally committed as revision 20848 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Skip dumping language twice.Michael Niedermayer2009-12-131-0/+1
| | | | | | This looks too ugly. Idea also from ffmbc. Originally committed as revision 20847 to svn://svn.ffmpeg.org/ffmpeg/trunk