aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
* move unrelated functions declarations out of allformats.hAurelien Jacobs2007-09-111-0/+1
| | | | Originally committed as revision 10475 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure that if a stream has a duration but the container doesn'tNeil Brown2007-09-051-13/+22
| | | | | | | | | | | then the container duration is set from the stream duration. patch by Neil Brown: [ neilb suse de] original thread: [FFmpeg-devel] [patch 3/3] Make timing calculations less dependant on start_time being defined. date: 08/16/2007 08:27 AM Originally committed as revision 10408 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Correct initial timestampWolfram Gloger2007-09-051-0/+1
| | | | | | | | | Patch by Wolfram Gloger: [wmglo $ dent med uni-muenchen de] Original thread: [FFmpeg-devel] [PATCH] av_estimate_timings_from_pts corrupt timestamps date: 08/25/2007 09:51 PM Originally committed as revision 10405 to svn://svn.ffmpeg.org/ffmpeg/trunk
* If a stream has no start time, but the first packet has a 'pts', use thatNeil Brown2007-09-031-4/+8
| | | | | | | | | | pts to set the start_time. patch by Neil Brown: [neilb suse de] original thread: [FFmpeg-devel] [patch 3/3] Make timing calculations less dependant on start_time being defined. date: 08/16/2007 08:27 AM Originally committed as revision 10285 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix probe buffer issue. patch by Wolfram Gloger {wmglo at ↵Wolfram Gloger2007-09-031-1/+3
| | | | | | | | | dent.med.uni-muenchen.de}. [FFmpeg-devel] [PATCH] ac3_probe input buffer overrun Aug 28, 2007 Originally committed as revision 10281 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not butcher start_time in av_estimate_timings_from_bit_rate().Neil Brown2007-08-181-4/+1
| | | | | | from a patch by neilb suse de Originally committed as revision 10140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When looking for the last packet in eachNeil Brown2007-08-181-8/+0
| | | | | | | | | | stream, so as to calculate the duration, don't stop as soon as all streams have seen at least one packet. Otherwise the duration will be shorter than it should be. We must keep reading to the end-of-file. patch by neilb suse de Originally committed as revision 10139 to svn://svn.ffmpeg.org/ffmpeg/trunk
* There is no guarantee that every stream willNeil Brown2007-08-181-1/+2
| | | | | | | | | have a start_time found (though it is likely), so check that the start_time is defined before calculating a duration. (patch by neilb suse de) Originally committed as revision 10138 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix cur_dts at the end of av_estimate_timings_from_pts()Michael Niedermayer2007-08-181-0/+4
| | | | Originally committed as revision 10137 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ensure that the codec_id detection in av_find_stream_info() does notMichael Niedermayer2007-08-061-4/+13
| | | | | | destroy the first dts values Originally committed as revision 9965 to svn://svn.ffmpeg.org/ffmpeg/trunk
* set a more reasonable start_time if the first timestamps are AV_NOPTS_VALUEMichael Niedermayer2007-08-041-0/+3
| | | | Originally committed as revision 9918 to svn://svn.ffmpeg.org/ffmpeg/trunk
* correct initial timestamps which have AV_NOPTS_VALUEMichael Niedermayer2007-08-041-1/+31
| | | | Originally committed as revision 9917 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move code which adds a AVPacket into the packet buffer into its own functionMichael Niedermayer2007-08-031-33/+20
| | | | Originally committed as revision 9871 to svn://svn.ffmpeg.org/ffmpeg/trunk
* deal with the case where one of pts,dts has wrapped but the other has notMichael Niedermayer2007-07-311-0/+5
| | | | Originally committed as revision 9839 to svn://svn.ffmpeg.org/ffmpeg/trunk
* kill antiwrapping code, i do not think this did anything goodMichael Niedermayer2007-07-301-13/+0
| | | | | | | fixes decoding of rete4.ps closes issue44 Originally committed as revision 9835 to svn://svn.ffmpeg.org/ffmpeg/trunk
* try exact match before case insensitive match in codec_get_idMichael Niedermayer2007-07-271-7/+11
| | | | Originally committed as revision 9808 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid misdetecting acelp in ASF as MP3.Michael Niedermayer2007-07-251-1/+1
| | | | | | fixes 2001-04-11.asf Originally committed as revision 9799 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurrences of AVERROR_NOTSUPP with AVERROR(ENOSYS).Panagiotis Issaris2007-07-191-2/+2
| | | | Originally committed as revision 9763 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurrences of AVERROR_IO with AVERROR(EIO).Panagiotis Issaris2007-07-191-1/+1
| | | | Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).Panagiotis Issaris2007-07-191-13/+13
| | | | Originally committed as revision 9759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move av_gettime() back to lavf/utils.cRamiro Polla2007-07-161-0/+12
| | | | Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avoid division by zero in av_find_stream_info() when no time base is setMåns Rullgård2007-07-141-1/+1
| | | | Originally committed as revision 9637 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move public API functions av_codec_get_tag() and av_codec_get_id()Aurelien Jacobs2007-07-111-0/+44
| | | | | | into a file which is compiled un-conditionally (utils.c). Originally committed as revision 9590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove unused functionsMåns Rullgård2007-07-071-43/+0
| | | | Originally committed as revision 9520 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use new string functionsMåns Rullgård2007-06-231-2/+3
| | | | | | based on patch by Reimar Döffinger Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk
* misc typo fixesDiego Biurrun2007-06-121-2/+2
| | | | Originally committed as revision 9291 to svn://svn.ffmpeg.org/ffmpeg/trunk
* misc spelling fixesDiego Biurrun2007-06-121-3/+3
| | | | Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the video size and rate abbreviations system from libavformat to libavcodecStefano Sabatini2007-06-121-103/+7
| | | | | | | | | patch by Stefano Sabatini: [stefano dot sabatini minus lala poste dot it] original thread: [FFmpeg-devel] [PATCH] Redesign the video size and rateabbreviations system date: 06/02/2007 05:30 PM Originally committed as revision 9288 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a bounds check on AVProbeData input.Ronald S. Bultje2007-06-101-1/+1
| | | | | | | | | patch by Ronald S. Bultje, rbultje ronald.bitfreak net thread: Date: Sat, 09 Jun 2007 19:22:17 -0400 Subject: [FFmpeg-devel] lavf probing Originally committed as revision 9275 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export av_init_packetRamiro Polla2007-06-041-0/+11
| | | | Originally committed as revision 9211 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use url_fopen error code when opening input fileBenoit Fouet2007-05-101-2/+1
| | | | | | handle the AVERROR_NOENT error case in print_error Originally committed as revision 8977 to svn://svn.ffmpeg.org/ffmpeg/trunk
* give the position offset of the file in the packetDaniel Cardenas2007-05-021-0/+1
| | | | | | | | | update seek regression test reference file accordingly patch by Daniel Cardenas: Daniel Car cox net original thread: [Ffmpeg-devel] [PATCH] Debug help for file position date: 05/01/2007 02:42 AM Originally committed as revision 8871 to svn://svn.ffmpeg.org/ffmpeg/trunk
* return right format in set_codec_from_probe_dataBenoit Fouet2007-05-021-1/+1
| | | | Originally committed as revision 8867 to svn://svn.ffmpeg.org/ffmpeg/trunk
* properly compile code for REDIR_DEMUXERAlex Beregszaszi2007-04-261-1/+1
| | | | Originally committed as revision 8840 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix reading PTSs and DTSs in libavformat, by reverting r8465.Luca Abeni2007-04-261-4/+17
| | | | | | | Such commit introduced some regressions (see the "Possible bug in reading PTS/DTS" and "[BUG] no video transcoding" threads on ffmpeg-devel). Originally committed as revision 8826 to svn://svn.ffmpeg.org/ffmpeg/trunk
* more format abbreviationsBenoit Fouet2007-04-241-0/+24
| | | | Originally committed as revision 8798 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dont assert(0) due to buggy rm demuxerMichael Niedermayer2007-04-221-0/+4
| | | | Originally committed as revision 8790 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix av_seek_frame_generic() so that it doesnt fail if theMichael Niedermayer2007-04-221-1/+1
| | | | | | requested timestamp is after the last with backward flag Originally committed as revision 8783 to svn://svn.ffmpeg.org/ffmpeg/trunk
* init packet before calling the demuxerMichael Niedermayer2007-04-221-0/+3
| | | | | | fixed random/uninitalized AVPacket->pos Originally committed as revision 8781 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove possibly broken wince cruftAlex Beregszaszi2007-04-201-2/+0
| | | | Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add an enum for need_parsingAurelien Jacobs2007-04-151-4/+4
| | | | Originally committed as revision 8742 to svn://svn.ffmpeg.org/ffmpeg/trunk
* timestamps generation improvement when parsing aviJoakim Plate2007-04-131-0/+11
| | | | | | | | | patch by Joakim \ elupus chez ecce dot se / original thread: date: 03/19/2007 01:47 AM subject: [Ffmpeg-devel] [RFC] Improvement for the odd timestamp generation when parser is in use. Originally committed as revision 8725 to svn://svn.ffmpeg.org/ffmpeg/trunk
* DVR-MS probe audio formatJohn Donaghy2007-04-121-0/+46
| | | | | | | | | patch by John Donaghy \ johnfdonaghy chez gmail dot com / Original thread: date: 03/13/2007 04:56 PM subject: [Ffmpeg-devel] [PATCH] DVR-MS probe audio format - was DVR-MS bug (MP2 decoding) Originally committed as revision 8715 to svn://svn.ffmpeg.org/ffmpeg/trunk
* allocate 32 extra bytes at the end of the probe buffer and remove most probe ↵Michael Niedermayer2007-04-081-1/+1
| | | | | | buf_size checks Originally committed as revision 8677 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some help for the analyzeduration option.Víctor Paesa2007-04-061-1/+1
| | | | | | patch by Víctor Paesa, wzrlpy arsystel com Originally committed as revision 8631 to svn://svn.ffmpeg.org/ffmpeg/trunk
* analyze end condition must match r_fps selection conditionMichael Niedermayer2007-03-301-1/+1
| | | | | | fixes fps for Channel\ 4\ News_Channel\ 4_20_10_2006_19_00_01.dvr-ms Originally committed as revision 8557 to svn://svn.ffmpeg.org/ffmpeg/trunk
* require at least a score of AVPROBE_SCORE_MAX/4 or reaching of PROBE_BUF_MAXMichael Niedermayer2007-03-271-6/+11
| | | | | | | to detect a container fixes probing of mpeg_probe_fail.mpg Originally committed as revision 8535 to svn://svn.ffmpeg.org/ffmpeg/trunk
* av_estimate_timings_from_pts() flushes the packet queue but doesn'tWolfram Gloger2007-03-211-17/+4
| | | | | | | | | | | | | | | reset the streams' cur_dts values. This can lead to a fatal "error, non monotone timestamps ..." message later, because the out-of-date cur_dts values are used to compute some packet's dts. Fix this by calling av_read_frame_flush() and eliminate code duplication in the process. The additional hunk gives more detailed error messages. patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de Originally committed as revision 8465 to svn://svn.ffmpeg.org/ffmpeg/trunk
* revert r8428, the check was not that uselessMichael Niedermayer2007-03-201-1/+1
| | | | | | should fix constant pts=0 with broken demuxers Originally committed as revision 8454 to svn://svn.ffmpeg.org/ffmpeg/trunk
* i think this is more correctMichael Niedermayer2007-03-201-1/+1
| | | | Originally committed as revision 8452 to svn://svn.ffmpeg.org/ffmpeg/trunk