Statistics
| Branch: | Revision:

ffmpeg / libavformat / utils.c @ bd51c013

History | View | Annotate | Download (103 KB)

# Date Author Comment
3a560188 03/19/2009 09:54 PM Baptiste Coudurier

move max analyze duration check before considering new packet

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

74f5ae84 03/14/2009 09:46 PM Reimar Döffinger

Add AVFMT_GENERIC_INDEX support also for formats that do not use a parser.

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

85b4230f 03/14/2009 04:30 PM Michael Niedermayer

Do not lose user flags when passing calls from the new to the old seeking API.

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

32d88592 03/14/2009 03:51 PM Michael Niedermayer

add avformat_seek_file()

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

3a4f91f5 03/09/2009 12:06 PM Reimar Döffinger

100l, to start reading from the first frame we must seek to data_offset,
not 0 in av_seek_frame_generic.

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

e6586575 03/05/2009 07:15 PM Diego Biurrun

Mark pos_min and pos_max variables as av_uninit to work around false
positive uninitialized variable warnings.

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

61c23c15 03/05/2009 07:36 AM Ivan Schreter

Pass packet position to the parser, so frame's AVPacket.pos is computed correctly.

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

c0492097 03/03/2009 12:57 PM Diego Biurrun

cosmetics: Fix indentation.

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

827f7e28 03/01/2009 04:35 PM Aurelien Jacobs

deprecate old metadata API

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

012867f0 03/01/2009 03:38 PM Aurelien Jacobs

use new metadata API in libavformat/utils.c

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

9e6c124a 03/01/2009 03:17 AM Michael Niedermayer

Disable MPEG-1/2 style timestamp calculation for H264. It still randomizes
the timestamps because delay is not known for the first few frames.

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

f166f2f4 02/28/2009 03:15 PM Måns Rullgård

Revert "Improve frame rate guessing for streams with two fields per frame."

This reverts r17656, which broke many tests. Further investigation
is necessary.

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

5fa61b26 02/28/2009 01:14 PM Ivan Schreter

Improve frame rate guessing for streams with two fields per frame.

Patch by Ivan Schreter, schreter gmx net

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

fe02d9e7 02/27/2009 02:13 PM Reimar Döffinger

Do not allow standard-frame-rate detection to increase the value of
r_frame_rate by more than 1% over a previously set/detected value.

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

85142724 02/27/2009 07:56 AM Reimar Döffinger

Detect the case when the time base is exact but far finer than necessary to
represent the time stamps, as e.g. for ipmovie.c and set a better r_frame_rate.

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

3797c74b 02/26/2009 11:47 PM Michael Niedermayer

Add ticks_per_frame, this should hopefully fix the regressions caused
by the time_base change.

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

27ca0a79 02/24/2009 10:19 PM Ivan Schreter

Add timestamp computation if values are exported by decoder.

Patch by Ivan Schreter, schreter gmx net

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

810c451b 02/24/2009 08:17 PM Ivan Schreter

Change duration computation to use time_base instead of TB/2.

Patch by Ivan Schreter, schreter gmx net

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

7f123e7f 02/24/2009 01:35 PM Michael Niedermayer

Add CODEC_ID_H264 to tb_unreliable(), it belongs there for the same
reason as mpeg2. (telecine amongth others)

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

1d14361d 02/23/2009 02:38 AM Michael Niedermayer

Allow av_find_stream_info() to be aborted.
Based on a patch by netgem.

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

c132938d 02/21/2009 11:00 PM Michael Niedermayer

Waste less space for printing timebases.

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

fa0e036d 02/21/2009 09:30 PM Michael Niedermayer

Print all timebases (idea from netgem)

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

346db3ef 02/21/2009 08:11 PM Ivan Schreter

Use context variable repeat_pict for frame duration computation and
document this new use.

Patch by Ivan Schreter, schreter gmx net

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

73d65a96 02/21/2009 05:29 PM Michael Niedermayer

Be less noisy with invalid pts/dts.

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

b1fa4942 02/19/2009 11:35 PM Ivan Schreter

Add convergence_duration to AVCodecParserContext.

Patch by Ivan Schreter, schreter gmx net

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

6363af44 02/18/2009 11:46 PM Ivan Schreter

Add key_frame to AVCodecParserContext, used in libavformat.
Initialized to -1 in parser.c for backward compatibility.

Patch by Ivan Schreter, schreter gmx net

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

d5cce0a4 02/12/2009 08:10 AM Art Clarke

Add a warning log when trying to encode into a container requiring global
headers in extradata and the codec is not set correctly.
Patch by Art Clarke aclarke xuggle com

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

949cd978 02/10/2009 12:27 AM Aurelien Jacobs

remove now useless av_set_program_name() function

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

ced06bd8 02/08/2009 10:03 PM Francesco Cosoleto

Add the ability to set the timestamp to the current time by specifying 'now'
as the time

Patch by Francesco Cosoleto ( cosoleto gmail com )

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

8e2fd8e1 02/08/2009 08:27 AM Stefano Sabatini

Replace the calls to the deprecated av_alloc_format_context() with
corresponding calls to avformat_alloc_context().

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

4f0f9bdd 02/03/2009 11:18 PM Baptiste Coudurier

let packet pass through when no timestamps

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

ccf0071d 01/31/2009 06:01 AM Baptiste Coudurier

split av_interleave_per_dts, to avoid code duplication

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

3a41c2f7 01/22/2009 11:35 PM Michael Niedermayer

Move av_read_frame/parser related buffer variables from AVFormatContext
to AVStream, this is required if we want to allow the user to pull frames
from specific streams at some point in the future.

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

082491c4 01/22/2009 07:45 PM Baptiste Coudurier

print stream sar if present and different than codec sar

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

cda6902d 01/22/2009 12:06 PM Michael Niedermayer

Handle av_read_frame() EAGAIN return.

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

aa915625 01/18/2009 12:47 AM Baptiste Coudurier

jpeg2k is intra only codec

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

2323ac01 01/17/2009 09:40 PM Baptiste Coudurier

match format in names list separated by commas

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

2bb6eba2 01/17/2009 12:21 PM Aurelien Jacobs

remove ff_get_fourcc() and use AV_RL32() instead

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

9ce6c138 01/17/2009 11:13 AM Aurelien Jacobs

export gcd function as av_gcd()

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

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

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

708ec8fb 01/10/2009 09:56 AM Stefano Sabatini

Move the AVFormatContext options definition to a dedicated file,
reduce the utils.c clutter.

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

65007a4f 01/09/2009 08:10 PM Luca Abeni

Do not assume that if pkt->destruct != av_destruct_packet then it is not
necessary to call the destruct method

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

5ce00433 01/09/2009 12:01 AM Aurelien Jacobs

rename ff_metadata_sync_compat to ff_metadata_mux_compat

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

e99f76ab 01/08/2009 11:24 PM Aurelien Jacobs

Add a second metadata compatibility layer, so that metadata that gets
demuxed with new API is automatically converted to the old API,
allowing old applications to stay functional.

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

9f06bd9e 01/07/2009 08:44 PM Michael Niedermayer

Do not try to duplicate packets that have data==NULL.

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

094d9df7 01/06/2009 10:11 PM Aurelien Jacobs

free all allocated metadata structures

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

176aee82 01/06/2009 12:09 AM Aurelien Jacobs

Add a metadata compatibility layer, so that when a user application set
metadata using old API, it is automatically converted to new API before
muxing.

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

bc1d2afb 01/04/2009 11:31 PM Aurelien Jacobs

rename AVMetaData to AVMetadata and meta_data to metadata

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

06a7bd9a 01/04/2009 07:00 PM Michael Niedermayer

10l format include path for metadata.h

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

47146dfb 01/04/2009 06:48 PM Michael Niedermayer

Generic metadata API.
avi is updated as example.
No version bump, the API still might change slightly ...
No update to ffmpeg.c as requested by aurel.

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

1ca9133f 01/04/2009 11:04 AM Stefano Sabatini

Drop the deprecated parse_image_size() and parse_frame_rate() functions
at the next libavformat major version bump.

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

15545a09 11/08/2008 06:37 PM Stefano Sabatini

Fix argument constness for the av_codec_get_id() and
av_codec_get_tag() functions, making them take in input a constant
array, since they're not supposed to change it. Fix some warnings.

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

b774fdd7 10/23/2008 05:30 PM Baptiste Coudurier

dnxhd codec is intra only

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

37d3e066 10/21/2008 09:40 PM Aurelien Jacobs

uses FF_ARRAY_ELEMS() where appropriate

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

9806f846 10/19/2008 01:02 AM Michael Niedermayer

Check for pts==dts on I/P frames in the presence of non low delay decoding and
discard these invalid timestamps.
fixes issue171.

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

f781f748 10/18/2008 10:41 PM Michael Niedermayer

Move code setting delay and presentation_delayed a little up so
that the variables are available sooner.

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

bc5c918e 10/03/2008 10:16 AM Diego Biurrun

Remove offset_t typedef and use int64_t directly instead.
The name offset_t is easily confused with the standard off_t type and
*_t is POSIX reserved namespace if any POSIX header is included.

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

fff5e687 09/27/2008 05:37 PM Diego Biurrun

Move doxygen comments for av_gettime from utils.c to avformat.h.

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

0354ddb7 09/19/2008 12:37 PM Michael Niedermayer

Ensure that muxer and encoder aspect ratios match. So no
invalid files are generated.

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

bf912a48 09/08/2008 07:37 PM Baptiste Coudurier

set block align in av_write_header if not set, fix issue #489

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

dd1c8f3e 09/08/2008 02:24 PM Luca Abeni

Bump Major version, this commit is almost just renaming bits_per_sample to
bits_per_coded_sample but that cannot be done seperately.
Patch by Luca Abeni
Also reset the minor version and fix the forgotton change to libfaad.
Note: The API/ABI should not be considered stable yet, there still may...

a2636c0f 09/03/2008 02:44 PM Michael Niedermayer

Add AVPacket.convergence_duration.

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

74aa41ba 09/02/2008 03:33 PM Michael Niedermayer

Fix detection of MPEG4 in MPEG-PS.
Fixes issue568.

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

ca9c5a4d 08/29/2008 10:13 PM Baptiste Coudurier

make has_codec_parameters not returning true when sample_fmt is not set

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

f0aaa16f 08/29/2008 01:43 AM Michael Niedermayer

Do not truncate timestamps before the muxer as it makes simple
things like last_pts - pts rather tricky and is not good for anything.
Timestamps should be truncated just before storing when needed.

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

452d3edb 08/28/2008 12:00 PM Ronald S. Bultje

Change implementation for ff_data_to_hex(), this is faster. See discussion on
mailinglist in "Realmedia patch" thread.

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

f1c80e35 08/27/2008 11:43 PM Ronald S. Bultje

Export data_to_hex() as private API in lavf, rename to ff_data_to_hex() and
move it from sdp.c into utils.c. Also add new header internal.h specifically
for lavf-specific internal API. See discussion in "Realmedia patch" thread
on mailinglist.

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

d63f529d 08/26/2008 08:38 PM Aurelien Jacobs

remove useless assignment (st is never read after this line)

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

f1588ed5 08/25/2008 03:39 PM Andreas Öman

When setting codec_id during codec probe we must also set codec_type.

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

aecf157e 08/24/2008 05:24 PM Reimar Döffinger

Mark several libavformat arrays const

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

c30a4489 08/23/2008 11:13 PM Aurelien Jacobs

export sample_aspect_ratio read by the demuxer in a separate field
that the one read by the decoder.

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

3c9769a0 08/14/2008 03:24 AM Michael Niedermayer

Do not fill the pts reordering buffer with guessed dts.
These values should not matter at all in principle because they
do not correspond to the time of display of any frame but it seems
ffmpeg becomes confused by them if they are far off and its not
strictly correct to set them to guessed values....

ea452b54 08/13/2008 05:22 PM Aurelien Jacobs

strcasecmp() requires #include <strings.h>

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

cb5b96cd 08/12/2008 05:26 PM Baptiste Coudurier

Prevent dts generation code to be executed when delay is > MAX_REORDER_DELAY,
this fixes overflow in AVStream->pts_buffer.

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

8163c870 08/10/2008 12:28 AM Stefano Sabatini

Cosmetics: move at the beginning of the file the av_frac_* functions, avoid
the forward declarations.

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

c97429e2 08/08/2008 06:40 PM Stefano Sabatini

Implement avformat_version().

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

5c5b1731 08/06/2008 10:17 PM Måns Rullgård

Maintain pointer to end of AVFormatContext.packet_buffer list

This changes add_to_pktbuf() to maintain a pointer to the last entry
in the list, avoiding a linear walk-through on each call. Before this
change, add_to_pktbuf() could take a significant amount of time (10%...

aaec4e03 07/31/2008 06:02 PM Baptiste Coudurier

check url_fseek return value, update seek reg tests

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

be390a4e 07/18/2008 07:13 AM Erik Hovland

Fix a mem leak in av_find_stream_info().
Patch by Erik Hovland erik hovland org

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

744b4c02 07/14/2008 08:31 PM Michael Niedermayer

Move the codec_id overriding at a slightly better place.

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

283c0619 07/14/2008 07:11 PM Michael Niedermayer

Remove common factors from timebase in av_set_pts_info().
Should fix issue313

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

dd57251c 07/12/2008 08:40 PM Michael Niedermayer

Remove old hackish codec probe system.

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

2a72e494 07/12/2008 08:01 PM Michael Niedermayer

Use strcmp() instead of strncmp() in set_codec_from_probe_data().

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

25d3fb73 07/12/2008 07:57 PM Michael Niedermayer

indent

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

942de2f4 07/12/2008 07:57 PM Michael Niedermayer

Only try to probe the codec when the available data has roughly doubled
relative to the last attempt.

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

312d24d5 07/12/2008 07:56 PM Michael Niedermayer

Add mpegvideo and H.264 to the codec probe.

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

55823964 07/12/2008 06:43 PM Michael Niedermayer

indent

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

0bef08e5 07/12/2008 06:42 PM Michael Niedermayer

New codec probing system try #1.

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

9d3b9f2c 07/12/2008 02:28 PM Michael Niedermayer

Move add_to_pktbuf() before av_read_packet(). My future work on codec identification
cleanup will need this.

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

64cd3108 07/12/2008 01:25 PM Michael Niedermayer

Move set_codec_from_probe_data() up to where the other probe functions are.

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

3179da62 07/12/2008 01:15 PM Michael Niedermayer

Pass AVPacketList instead of the whole context to add_to_pktbuf as that is
all that is needed.

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

cdb5af79 07/08/2008 11:26 PM Michael Niedermayer

indent

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

7efeb73a 07/08/2008 11:25 PM Michael Niedermayer

10000l for myself, my last change was incomplete.
This one also reverts the libav mpeg ts regression test score change.

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

6d77d9ac 07/08/2008 02:07 PM Michael Niedermayer

Set cur_dts to 0 only during creating new streams and not every time cur_dts happens
to be AV_NOPTS_VALUE.

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

1e2802c5 07/03/2008 12:12 PM Ronald S. Bultje

Reindent after r14059, see "[PATCH] allow empty params for
av_open_input_stream()".

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

e145ce20 07/03/2008 12:10 PM Ronald S. Bultje

Allow NULL for read_header in AVInputFormat. See discussion in "[PATCH] allow
empty params for av_open_input_stream()".

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

15061147 06/27/2008 07:00 PM Baptiste Coudurier

give context to av_log

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

3041a4a1 06/26/2008 11:28 AM Michael Niedermayer

Also print flags with FF_FDEBUG_TS.

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

f3b5a1a2 06/25/2008 07:30 PM Baptiste Coudurier

make av_find_stream_info find frame_size for aac too

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

4d35bf74 06/25/2008 06:36 PM Michael Niedermayer

Make av_find_stream_info() find the frame_size for vorbis.

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