Statistics
| Branch: | Revision:

ffmpeg / libavformat / utils.c @ f0a9978c

History | View | Annotate | Download (88.1 KB)

# Date Author Comment
c7385375 08/06/2007 09:14 PM Michael Niedermayer

ensure that the codec_id detection in av_find_stream_info() does not
destroy the first dts values

Originally committed as revision 9965 to svn://svn.ffmpeg.org/ffmpeg/trunk

48a59dfe 08/04/2007 10:54 PM Michael Niedermayer

set a more reasonable start_time if the first timestamps are AV_NOPTS_VALUE

Originally committed as revision 9918 to svn://svn.ffmpeg.org/ffmpeg/trunk

82583548 08/04/2007 10:46 PM Michael Niedermayer

correct initial timestamps which have AV_NOPTS_VALUE

Originally committed as revision 9917 to svn://svn.ffmpeg.org/ffmpeg/trunk

02b15cc8 08/03/2007 08:56 AM Michael Niedermayer

move code which adds a AVPacket into the packet buffer into its own function

Originally committed as revision 9871 to svn://svn.ffmpeg.org/ffmpeg/trunk

10a7571b 07/31/2007 03:06 PM Michael Niedermayer

deal with the case where one of pts,dts has wrapped but the other has not

Originally committed as revision 9839 to svn://svn.ffmpeg.org/ffmpeg/trunk

90f66438 07/30/2007 06:57 PM Michael Niedermayer

kill antiwrapping code, i do not think this did anything good
fixes decoding of rete4.ps
closes issue44

Originally committed as revision 9835 to svn://svn.ffmpeg.org/ffmpeg/trunk

41415d28 07/27/2007 11:36 AM Michael Niedermayer

try exact match before case insensitive match in codec_get_id

Originally committed as revision 9808 to svn://svn.ffmpeg.org/ffmpeg/trunk

e0c850a8 07/25/2007 08:39 PM Michael Niedermayer

Avoid misdetecting acelp in ASF as MP3.
fixes 2001-04-11.asf

Originally committed as revision 9799 to svn://svn.ffmpeg.org/ffmpeg/trunk

85565db0 07/19/2007 03:38 PM Panagiotis Issaris

Replace all occurrences of AVERROR_NOTSUPP with AVERROR.

Originally committed as revision 9763 to svn://svn.ffmpeg.org/ffmpeg/trunk

6f3e0b21 07/19/2007 03:23 PM Panagiotis Issaris

Replace all occurrences of AVERROR_IO with AVERROR.

Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk

769e10f0 07/19/2007 03:21 PM Panagiotis Issaris

Replace all occurrences of AVERROR_NOMEM with AVERROR.

Originally committed as revision 9759 to svn://svn.ffmpeg.org/ffmpeg/trunk

82e4ac2c 07/16/2007 08:28 PM Ramiro Polla

Move av_gettime() back to lavf/utils.c

Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk

b3fc0925 07/14/2007 12:42 PM Måns Rullgård

avoid division by zero in av_find_stream_info() when no time base is set

Originally committed as revision 9637 to svn://svn.ffmpeg.org/ffmpeg/trunk

45da8124 07/11/2007 12:45 PM Aurelien Jacobs

Move public API functions av_codec_get_tag() and av_codec_get_id()
into a file which is compiled un-conditionally (utils.c).

Originally committed as revision 9590 to svn://svn.ffmpeg.org/ffmpeg/trunk

14d194d5 07/07/2007 01:46 PM Måns Rullgård

remove unused functions

Originally committed as revision 9520 to svn://svn.ffmpeg.org/ffmpeg/trunk

75e61b0e 06/23/2007 11:10 PM Måns Rullgård

use new string functions
based on patch by Reimar Döffinger

Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk

90b5b51e 06/12/2007 06:50 PM Diego Biurrun

misc typo fixes

Originally committed as revision 9291 to svn://svn.ffmpeg.org/ffmpeg/trunk

755bfeab 06/12/2007 09:29 AM Diego Biurrun

misc spelling fixes

Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk

26ef3220 06/12/2007 08:06 AM Stefano Sabatini

Move the video size and rate abbreviations system from libavformat to libavcodec
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...

19ecf882 06/10/2007 08:35 PM Ronald S. Bultje

Add a bounds check on AVProbeData input.
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

659596f0 06/04/2007 04:52 PM Ramiro Polla

Export av_init_packet

Originally committed as revision 9211 to svn://svn.ffmpeg.org/ffmpeg/trunk

0ba0c8de 05/10/2007 01:25 PM Benoit Fouet

Use url_fopen error code when opening input file
handle the AVERROR_NOENT error case in print_error

Originally committed as revision 8977 to svn://svn.ffmpeg.org/ffmpeg/trunk

711737af 05/02/2007 01:36 PM Daniel Cardenas

give the position offset of the file in the packet
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

efd5fc53 05/02/2007 09:18 AM Benoit Fouet

return right format in set_codec_from_probe_data

Originally committed as revision 8867 to svn://svn.ffmpeg.org/ffmpeg/trunk

e7047005 04/26/2007 11:40 PM Alex Beregszaszi

properly compile code for REDIR_DEMUXER

Originally committed as revision 8840 to svn://svn.ffmpeg.org/ffmpeg/trunk

578688fa 04/26/2007 10:49 AM Luca Abeni

Fix reading PTSs and DTSs in libavformat, by reverting r8465.
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

7d88b5ca 04/24/2007 11:45 AM Benoit Fouet

more format abbreviations

Originally committed as revision 8798 to svn://svn.ffmpeg.org/ffmpeg/trunk

db2a0e22 04/22/2007 06:48 PM Michael Niedermayer

dont assert(0) due to buggy rm demuxer

Originally committed as revision 8790 to svn://svn.ffmpeg.org/ffmpeg/trunk

b5a3541d 04/22/2007 04:23 PM Michael Niedermayer

fix av_seek_frame_generic() so that it doesnt fail if the
requested timestamp is after the last with backward flag

Originally committed as revision 8783 to svn://svn.ffmpeg.org/ffmpeg/trunk

b237eb80 04/22/2007 11:07 AM Michael Niedermayer

init packet before calling the demuxer
fixed random/uninitalized AVPacket->pos

Originally committed as revision 8781 to svn://svn.ffmpeg.org/ffmpeg/trunk

61bc79ec 04/20/2007 11:45 PM Alex Beregszaszi

remove possibly broken wince cruft

Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk

57004ff1 04/15/2007 01:51 PM Aurelien Jacobs

add an enum for need_parsing

Originally committed as revision 8742 to svn://svn.ffmpeg.org/ffmpeg/trunk

a74008a4 04/13/2007 07:50 AM Joakim Plate

timestamps generation improvement when parsing avi
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

6fea687e 04/12/2007 08:11 AM John Donaghy

DVR-MS probe audio format
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

87e87886 04/08/2007 11:34 AM Michael Niedermayer

allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks

Originally committed as revision 8677 to svn://svn.ffmpeg.org/ffmpeg/trunk

e19fbbec 04/06/2007 09:43 AM Víctor Paesa

Add some help for the analyzeduration option.
patch by Víctor Paesa, wzrlpy arsystel com

Originally committed as revision 8631 to svn://svn.ffmpeg.org/ffmpeg/trunk

6cc65ab3 03/30/2007 03:05 PM Michael Niedermayer

analyze end condition must match r_fps selection condition
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

79750486 03/27/2007 07:28 PM Michael Niedermayer

require at least a score of AVPROBE_SCORE_MAX/4 or reaching of PROBE_BUF_MAX
to detect a container
fixes probing of mpeg_probe_fail.mpg

Originally committed as revision 8535 to svn://svn.ffmpeg.org/ffmpeg/trunk

df7625ed 03/21/2007 10:48 AM Wolfram Gloger

av_estimate_timings_from_pts() flushes the packet queue but doesn't
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....

028d6f3e 03/20/2007 01:59 PM Michael Niedermayer

revert r8428, the check was not that useless
should fix constant pts=0 with broken demuxers

Originally committed as revision 8454 to svn://svn.ffmpeg.org/ffmpeg/trunk

a843d1ff 03/20/2007 01:01 PM Michael Niedermayer

i think this is more correct

Originally committed as revision 8452 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc4efe42 03/17/2007 02:44 PM Michael Niedermayer

remove incorrect special case for audio

Originally committed as revision 8433 to svn://svn.ffmpeg.org/ffmpeg/trunk

7e4baa66 03/17/2007 02:29 PM Michael Niedermayer

fix indention

Originally committed as revision 8432 to svn://svn.ffmpeg.org/ffmpeg/trunk

d9e1efb7 03/17/2007 02:27 PM Michael Niedermayer

reorder pts into dts support

Originally committed as revision 8431 to svn://svn.ffmpeg.org/ffmpeg/trunk

a7f7965a 03/17/2007 02:23 AM Michael Niedermayer

remove useless if()

Originally committed as revision 8428 to svn://svn.ffmpeg.org/ffmpeg/trunk

14eb3345 03/17/2007 02:03 AM Michael Niedermayer

simplify

Originally committed as revision 8427 to svn://svn.ffmpeg.org/ffmpeg/trunk

41c8a56a 03/17/2007 01:21 AM Michael Niedermayer

simplify

Originally committed as revision 8426 to svn://svn.ffmpeg.org/ffmpeg/trunk

e25f9731 03/16/2007 11:02 PM Michael Niedermayer

remove silly video check, theres nothing video specific in there

Originally committed as revision 8425 to svn://svn.ffmpeg.org/ffmpeg/trunk

befe3b05 03/16/2007 10:59 PM Michael Niedermayer

add a delay variable to hold the timestamp buffer size
set cur_dts correctly for delay>1

Originally committed as revision 8424 to svn://svn.ffmpeg.org/ffmpeg/trunk

741887cf 03/16/2007 10:31 PM Michael Niedermayer

remove special case for h.264 whatever this was supposed to do its not correct

Originally committed as revision 8423 to svn://svn.ffmpeg.org/ffmpeg/trunk

750f0e1f 03/12/2007 02:17 PM Panagiotis Issaris

Introduce two new logging functions av_hex_dump_log() and av_pkt_dump_log()
which use av_log() for logging instead of fprintf().

Originally committed as revision 8339 to svn://svn.ffmpeg.org/ffmpeg/trunk

ea486ab3 03/12/2007 10:59 AM Baptiste Coudurier

remove codec_info_duration/nb_frames from AVStream

Originally committed as revision 8337 to svn://svn.ffmpeg.org/ffmpeg/trunk

3217cb42 03/03/2007 12:23 PM Panagiotis Issaris

Move the libavformat public API comments to avformat.h. The comments are
unmodified.

Originally committed as revision 8202 to svn://svn.ffmpeg.org/ffmpeg/trunk

0cbff027 03/02/2007 01:23 PM Kristian Amlie

replace the auto array "duration_error" with a malloced array.
prevents stack overflow on some plateforms
patch by Kristian Amlie %kristian A gridmedia P com %
Original thread:
Date: Mar 1, 2007 11:29 PM
Subject: [Ffmpeg-devel] Stack overflow patch

Originally committed as revision 8194 to svn://svn.ffmpeg.org/ffmpeg/trunk

497244a8 03/01/2007 04:40 PM Baptiste Coudurier

check for any seeking failure during probe

Originally committed as revision 8173 to svn://svn.ffmpeg.org/ffmpeg/trunk

3fdb6af9 02/27/2007 01:07 PM Baptiste Coudurier

use avcodec_decode_audio2

Originally committed as revision 8146 to svn://svn.ffmpeg.org/ffmpeg/trunk

a185f52a 02/20/2007 04:18 PM Michael Niedermayer

try to fill in missing bits_per_sample

Originally committed as revision 8043 to svn://svn.ffmpeg.org/ffmpeg/trunk

8fa36ae0 02/13/2007 06:26 PM François Revol

This fixes error handling for BeOS, removing the need for some ifdefs.
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed....

e9b78eeb 02/05/2007 11:04 PM Michael Niedermayer

better generic index building and seeking code

Originally committed as revision 7841 to svn://svn.ffmpeg.org/ffmpeg/trunk

9ecf7fad 02/05/2007 02:08 AM Wolfram Gloger

Fix audio corruption when cutting.
Patch by Wolfram Gloger, wmglo dent dot med dot uni-muenchen dot de.

Originally committed as revision 7818 to svn://svn.ffmpeg.org/ffmpeg/trunk

5a461d8e 02/02/2007 11:19 AM Michael Niedermayer

packets must be correctly interleaved

Originally committed as revision 7805 to svn://svn.ffmpeg.org/ffmpeg/trunk

a44b3c4d 01/23/2007 05:34 PM Michael Niedermayer

make av_find_stream_info() duration user selectable

Originally committed as revision 7669 to svn://svn.ffmpeg.org/ffmpeg/trunk

373c32c7 01/23/2007 09:24 AM Michel Bardiaux

Fix wrong comment, patch by Michel Bardiaux mbardiaux mediaxim be.

Originally committed as revision 7659 to svn://svn.ffmpeg.org/ffmpeg/trunk

5ecfa9f5 01/21/2007 12:31 PM Michael Niedermayer

set codec_tag from codec_id if its not set and can be set based on the AVCodecTag tables

Originally committed as revision 7600 to svn://svn.ffmpeg.org/ffmpeg/trunk

40d9c544 01/19/2007 10:54 PM Reimar Döffinger

Attempt to better document AVFMT_NOFILE.

Originally committed as revision 7590 to svn://svn.ffmpeg.org/ffmpeg/trunk

b8e705ec 01/19/2007 10:52 PM Reimar Döffinger

Demuxers with AVFMT_NOFILE will open a (possibly different) file themselves,
so do not probe them if is_opened is set.

Originally committed as revision 7589 to svn://svn.ffmpeg.org/ffmpeg/trunk

dfc58c5d 01/08/2007 02:44 PM Baptiste Coudurier

removed unused av_frac_set

Originally committed as revision 7430 to svn://svn.ffmpeg.org/ffmpeg/trunk

702dfe01 01/08/2007 02:42 PM Baptiste Coudurier

remove #if obsoleted after last major version bump

Originally committed as revision 7429 to svn://svn.ffmpeg.org/ffmpeg/trunk

8fae2df5 01/08/2007 02:22 PM Baptiste Coudurier

10l, only allocate priv_data if not already done

Originally committed as revision 7428 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6efa4b5 01/08/2007 12:57 PM Baptiste Coudurier

humm, actually do what's in the doxy

Originally committed as revision 7427 to svn://svn.ffmpeg.org/ffmpeg/trunk

69c262d1 01/02/2007 08:35 PM Michael Niedermayer

indention

Originally committed as revision 7403 to svn://svn.ffmpeg.org/ffmpeg/trunk

1694118b 01/02/2007 08:32 PM Michael Niedermayer

nth try of getting the frame rate detecton working

Originally committed as revision 7402 to svn://svn.ffmpeg.org/ffmpeg/trunk

ecec87af 01/01/2007 09:17 PM Michael Niedermayer

revert regression test breaking change

Originally committed as revision 7394 to svn://svn.ffmpeg.org/ffmpeg/trunk

4b96d28a 12/29/2006 09:41 PM Michael Niedermayer

ignore duration of the first 2 frames in the max-time break check
fixes framerate detection for framerate_misdetected.wmv

Originally committed as revision 7384 to svn://svn.ffmpeg.org/ffmpeg/trunk

6268538a 12/29/2006 09:16 PM Michael Niedermayer

do not base frame rate guess on just one duration

Originally committed as revision 7383 to svn://svn.ffmpeg.org/ffmpeg/trunk

e07d8929 12/12/2006 02:08 PM Michael Niedermayer

indent

Originally committed as revision 7290 to svn://svn.ffmpeg.org/ffmpeg/trunk

fd97f6a2 12/12/2006 02:07 PM Michael Niedermayer

the next r_frame_rate try ...
discard first duration
accumulate remaining durations
add 15000/1001 and 12000/1001

Originally committed as revision 7289 to svn://svn.ffmpeg.org/ffmpeg/trunk

06d1e5c2 12/12/2006 12:24 PM Michael Niedermayer

gcc 2.95 fix

Originally committed as revision 7285 to svn://svn.ffmpeg.org/ffmpeg/trunk

4d43cbcc 12/11/2006 04:59 PM Michael Niedermayer

rewrite r_frame_rate selectioon code again

Originally committed as revision 7283 to svn://svn.ffmpeg.org/ffmpeg/trunk

f27a7268 12/07/2006 12:47 AM Måns Rullgård

use standard INT64_MAX instead of MAXINT64 (and MIN)

Originally committed as revision 7241 to svn://svn.ffmpeg.org/ffmpeg/trunk

8da9266c 12/06/2006 11:46 PM Måns Rullgård

use the standard INT64_C() macro for 64-bit constants

Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk

68a432cf 12/06/2006 05:17 PM Baptiste Coudurier

cosmetics, remove braces, remove spaces just inside parens

Originally committed as revision 7236 to svn://svn.ffmpeg.org/ffmpeg/trunk

8533284d 12/06/2006 03:46 PM Andy Parkins

do not truncate pts/dts if value is AV_NOPTS_VALUE, patch by Andy Parkins, andrew parkins at 360visiontechnology com

Originally committed as revision 7234 to svn://svn.ffmpeg.org/ffmpeg/trunk

89ddd2a9 11/14/2006 01:34 AM Michael Niedermayer

split av_seek_frame_binary() so the code becomes idependant of AVInputFormat and AVIndex

Originally committed as revision 7035 to svn://svn.ffmpeg.org/ffmpeg/trunk

faf7cbf1 11/11/2006 07:37 PM Michael Niedermayer

nut simple seeking first try

Originally committed as revision 6968 to svn://svn.ffmpeg.org/ffmpeg/trunk

f932cdf2 11/02/2006 11:22 PM Baptiste Coudurier

kill AVImageFormat

Originally committed as revision 6875 to svn://svn.ffmpeg.org/ffmpeg/trunk

949b1a13 11/01/2006 10:39 PM Steve L'Homme

Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com

Originally committed as revision 6868 to svn://svn.ffmpeg.org/ffmpeg/trunk

1345f4ed 11/01/2006 09:28 PM Diego Biurrun

Rename SWAP macro to FFSWAP.

Originally committed as revision 6865 to svn://svn.ffmpeg.org/ffmpeg/trunk

e344c1ea 11/01/2006 09:09 PM Steve L'Homme

reindentation, patch by From: Steve Lhomme, slhomme divxcorp com

Originally committed as revision 6864 to svn://svn.ffmpeg.org/ffmpeg/trunk

55bdd34d 10/30/2006 11:59 PM Baptiste Coudurier

remove gcc warning about void * used in arithmetic

Originally committed as revision 6845 to svn://svn.ffmpeg.org/ffmpeg/trunk

18de0b81 10/27/2006 10:53 AM Baptiste Coudurier

fflags can/will be used for muxing too

Originally committed as revision 6802 to svn://svn.ffmpeg.org/ffmpeg/trunk

ccd3228e 10/14/2006 08:43 PM Dominik Mierzejewski

Use proper PRI?64 macros for %ll? format to fix printf format warnings:
utils.c:833: warning: format ‘%lld’ expects type ‘long long int’, but argument 5 has type ‘int64_t’
utils.c:833: warning: format ‘%lld’ expects type ‘long long int’, but argument 6 has type ‘int64_t’...

03bb9ae5 10/13/2006 07:19 PM Michael Niedermayer

10l CODEC vs. FORMAT

Originally committed as revision 6687 to svn://svn.ffmpeg.org/ffmpeg/trunk

c26abfa5 10/11/2006 11:17 PM Diego Biurrun

Rename ABS macro to FFABS.

Originally committed as revision 6666 to svn://svn.ffmpeg.org/ffmpeg/trunk

b78e7197 10/07/2006 03:30 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk

5523d5f4 10/03/2006 07:13 PM Michael Niedermayer

fix r_frame_rate detection in mpeg4 streams with non integer fps

Originally committed as revision 6544 to svn://svn.ffmpeg.org/ffmpeg/trunk

730ba406 09/26/2006 06:34 PM Michael Niedermayer

fix r_frame_rate init code for groundhog.vob

Originally committed as revision 6345 to svn://svn.ffmpeg.org/ffmpeg/trunk

6c17a956 09/26/2006 06:03 PM Michael Niedermayer

drop broken telecine detection code

Originally committed as revision 6343 to svn://svn.ffmpeg.org/ffmpeg/trunk

35eab0c0 09/26/2006 05:27 PM Michael Niedermayer

reindent

Originally committed as revision 6342 to svn://svn.ffmpeg.org/ffmpeg/trunk

5fb83c38 09/26/2006 05:25 PM Michael Niedermayer

dont ignore MAX_READ_SIZE

Originally committed as revision 6341 to svn://svn.ffmpeg.org/ffmpeg/trunk