Statistics
| Branch: | Revision:

ffmpeg / libavformat / utils.c @ 708ec8fb

History | View | Annotate | Download (96.8 KB)

# Date Author Comment
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

6e1aa0f3 06/25/2008 06:31 PM Michael Niedermayer

Fill missing pts in during muxing when we know that they are equal to dts.

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

c924ca78 06/25/2008 06:15 PM Michael Niedermayer

We cannot calculate the duration of vorbis packets even if we do know the
"minimal" frame_size.

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

796d200a 06/24/2008 11:56 PM Michael Niedermayer

Prevent duration calculation code from generating random durations for
vorbis in ogg.

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

ade8d8b9 06/20/2008 05:22 PM Baptiste Coudurier

uniformize AVStream->priv_data freeing in av_close_input_stream

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

ccafd472 06/20/2008 05:16 PM Baptiste Coudurier

factorize read_header failure freeing code

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

6919e54c 06/20/2008 07:27 AM Art Clarke

Check if there is at least a stream before writing trailer.
Patch by Art Clarke: aclarke vlideshow com

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

45b2b05f 06/09/2008 01:38 PM Michael Niedermayer

Make timestamp debugging work nicer.

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

fc9c2d53 06/06/2008 04:53 PM Ramiro Polla

Merge declaration and initialization.

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

ca162a50 06/03/2008 03:19 PM Aurelien Jacobs

Ensure the first audio stream is selected as the default stream
when no video stream is present.

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

820ad60c 06/03/2008 12:50 AM Michael Niedermayer

Make update_initial_durations() also work if a dts occured before a
sequence header (that is a few known dts/pts but no known durations
previously)
cnnts1.mpg is one sample affected by this.

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

5853423c 06/03/2008 12:43 AM Michael Niedermayer

Do not set pts in update_initial_durations() if stream has b frames.

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

1686cce6 06/02/2008 09:15 AM Andreas Öman

Audio channels and sample rate must be set in order to skip
additional probing of a stream.

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

c5577c40 06/02/2008 04:08 AM Baptiste Coudurier

rename last_frame_offset to next_frame_offset, due to r13615

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

5e5c9086 05/27/2008 09:44 PM Michael Niedermayer

redundant check--

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

406a0fdc 05/27/2008 06:43 PM Michael Niedermayer

Do not use the pts/dts calculation code which needs a parser, when no parser
is available.

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

c2c3dedf 05/24/2008 09:44 PM Aurelien Jacobs

compute the end of all chapters when end is not specified in the container

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

ebea1d76 05/24/2008 12:56 PM Aurelien Jacobs

cosmetics: indentation

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

570745cc 05/24/2008 12:55 PM Aurelien Jacobs

remove useless title check

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

abd2256d 05/23/2008 06:15 PM Michael Niedermayer

Pass time_base as argument to new_chapter() as well.
This fixes the wrong timebase the matroska demuxer had after my previous commits.
Maybe we should reduce new_chapter() to just (AVFormatContext, int id) ?

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

b18a4ab2 05/23/2008 05:52 PM Michael Niedermayer

Warn user about invalid timestamps.

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

5c37f43a 05/23/2008 01:14 PM Michael Niedermayer

Make ff_new_chapter() return AVChapter instead of int so its consistant with
av_new_program() and its simpler to set other fields in AVChapter which arent
set by ff_new_chapter().

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

7c8202cc 05/23/2008 01:07 PM Michael Niedermayer

s/num_chapters/nb_chapters/ all other similar variables are called nb_*.

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

747fb6c6 05/23/2008 01:04 PM Michael Niedermayer

vertical align

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

42720ee4 05/23/2008 01:03 PM Michael Niedermayer

indent

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

0dac708e 05/23/2008 01:03 PM Michael Niedermayer

remove useless title check

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

6b43e2c7 05/23/2008 01:03 PM Michael Niedermayer

indent

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

7a2a3e8e 05/23/2008 01:02 PM Michael Niedermayer

Add id to AVChapter, untested (where do i find matroska files with chapters?).

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

842ffee3 05/23/2008 11:46 AM Aurelien Jacobs

cosmetics: indentation

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

1ba056b6 05/23/2008 11:45 AM Aurelien Jacobs

allows adding chapters with NULL title

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

79d7836a 05/22/2008 10:00 PM Anton Khirnov

add support for chapters definition in lavf
patch by Anton Khirnov wyskas at gmail dot com

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

245976da 05/09/2008 11:56 AM Diego Biurrun

Use full path for #includes from another directory.

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

ccd425e7 05/06/2008 09:16 AM Diego Biurrun

Remove unnecessary parentheses from return calls.

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

ceedda75 04/24/2008 11:09 PM Michael Niedermayer

minor memleak

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

d965c3e7 04/16/2008 06:46 AM Diego Biurrun

Print duration with higher precision.
patch from Hervé Flores, herve.flores free fr

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

4b3cca36 04/15/2008 01:50 PM Michael Niedermayer

Do not detect a format if another has the same score.

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

ee794d1e 04/13/2008 08:55 AM Reimar Döffinger

Do not call update_initial_durations if pkt->duration is 0.
Fixes and assertion crash when playing amv files, e.g.
http://samples.mplayerhq.hu/amv/Shakira - Hips Don't Lie.amv

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

d9526386 03/22/2008 01:06 AM Diego Biurrun

typo: occured --> occurred

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

bd107136 03/15/2008 04:15 PM Diego Biurrun

typo fixes

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

ab8ab30c 03/08/2008 09:59 PM Ramiro Polla

Introduce max_picture_buffer variable in AVFormatContext,
set by rtbufsize option.

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

4c7981ba 03/06/2008 05:44 PM Baptiste Coudurier

do not reset duration_error for all streams, only reset current stream, fix wrong_fps.gxf

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