Statistics
| Branch: | Revision:

ffmpeg / libavformat / utils.c @ 5f8e0227

History | View | Annotate | Download (97.7 KB)

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

ac6f1330 02/24/2008 04:28 PM Michael Niedermayer

Set indexmem to a saner default.

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

635fbcb1 02/20/2008 08:24 PM Michael Niedermayer

revert 12156

Log:
Make timestamp interpolation work with mpeg2 field pictures.
Cleaner/simpler solutions are welcome.
----
A IMHO cleaner solution has been implemented.

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

91acf9a8 02/20/2008 03:40 AM Michael Niedermayer

Get rid of a fake timestamp discontinuity at the begin of V.VOB.
This solution is not really correct but it is quite simple. Correct would
be to do a second pass over the packets after all the headers have been
collected.

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

ff2635b2 02/20/2008 03:20 AM Michael Niedermayer

Make timestamp interpolation work with mpeg2 field pictures.
Cleaner/simpler solutions are welcome.

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

83a9db42 02/15/2008 08:32 PM Michael Niedermayer

Fix timestamps and durations if the first packets have no durations nor timestamps,
and the information needed to guess the duration only becomes known at a later packet.

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

dc296223 02/02/2008 10:55 PM Michael Niedermayer

Remove incorrect casts that should have never been there.

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

f8d7c9d3 01/27/2008 03:43 PM Evgeniy Stepanov

Add support for Matroska attachments.
patch by eugeni dot stepanov at gmail.com and myself

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

7f938dd3 01/21/2008 11:43 PM Aurelien Jacobs

ensure av_rescale_q() can be calculated (won't divide by zero)

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

a85736f2 01/16/2008 10:14 PM Diego Biurrun

misc spelling/grammar fixes

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

3dea63bd 01/13/2008 01:33 PM Paul Kelly

user specifyable maximum amount of memory to use for the index.
patch by Paul Kelly paul stjohnspoint co uk
with some changes by me

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

5cc9253f 12/29/2007 04:34 PM Michael Niedermayer

indent

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

7ef55085 12/29/2007 04:13 PM Michael Niedermayer

Try to fix url_split() so that the ?foobar part is in the path and only the path.

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

945208ca 12/27/2007 12:16 AM Michael Niedermayer

Fix detected fps for old divx/xvid.

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

88b00723 12/23/2007 01:16 PM Reimar Döffinger

100l, av_read_packet must check for read_packet error, in case of
error pkt->stream_index could be invalid and must not be used.
Fixes a crash with http://www.cs.berkeley.edu/~dmolnar/2-snippet3.wav

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

fd2982a0 12/20/2007 12:25 AM Aurelien Jacobs

remove double check of pb->read_seek

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

ceeacce6 12/19/2007 11:26 PM Aurelien Jacobs

use proper url_is_streamed() API
instead of messing with ByteIOContext internal is_streamed field

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

502bdf68 12/19/2007 08:57 PM Michael Niedermayer

Merge recently added and still unused play and pause functions.

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

2506fd54 12/19/2007 02:07 PM Reimar Döffinger

Add a av_close_input_stream function

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

62600469 12/19/2007 10:56 AM Michael Niedermayer

Allow overriding codec_ids.

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

ca75a923 12/17/2007 07:12 PM Reimar Döffinger

Simplify av_close_input_file similarly to av_open_input_file previously

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

17acc63a 12/17/2007 07:08 PM Reimar Döffinger

Simplify av_open_input_file

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

841f39a7 12/17/2007 05:41 PM Reimar Döffinger

Add FF_OPT_TYPE_BINARY and use it to add a cryptokey option

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

fa13095a 12/17/2007 09:28 AM Björn Axelsson

Enable av_read_pause(), av_read_play() and the ASF demuxer's av_read_seek()
to use the protocol-native functionality if available.
Patch by Björn Axelsson: bjorn point axelsson at intinor dot se
Original thread: [FFmpeg-devel] [PATCH][4/4] Enable use of the extended API...

84be6e72 12/12/2007 07:01 PM Michael Niedermayer

av_*_next() API for libavformat

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

e8acf0ed 11/29/2007 08:35 AM Luca Abeni

Suppress the "redirector hack" from libavformat/utils.c:av_open_input_stream(),
and implement the redirector format more properly.

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

899681cd 11/21/2007 07:41 AM Björn Axelsson

Use dynamically allocated ByteIOContext in AVFormatContext

patch by: Björn Axelsson, bjorn d axelsson a intinor d se
thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007

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

5fba300d 11/13/2007 11:43 PM Michael Niedermayer

rename fps(frame per second) to tb(time base) to prevent
confusion with the average fps and hopefully stop these "wrong framerate"
bug reports

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

f473666f 10/26/2007 08:02 PM Nico Sabbi

print newline after program id even when the name is missing

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

63bb42fb 10/25/2007 10:11 AM Diego Biurrun

Remove unused variable, fixes warning:
utils.c: In function 'dump_format':
utils.c:2542: warning: unused variable 'flags'

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

3a1d3588 10/24/2007 04:54 AM Jeff Downs

Move setting of key frame flag for intra-only codecs, ignoring key frame
flag of parser for such codecs as intra-only parsers don't set key frame
flag. Corrects lack of key frame marking in mjpeg, possibly others.

Original thread: Key Frame Marking, Fri, 12 Oct 2007 03:35:57...

4e745a3b 10/21/2007 11:10 PM Baptiste Coudurier

100l, fix dump_format, declare buf in dump_stream_format, sizeof(buf) is 4 because buf is char* since r10818

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

526efa10 10/20/2007 08:25 AM Nico Sabbi

API extension: AVProgram now has an array (stream_index) containing the indexes of the streams in AVFormatContext

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

fad0e030 10/20/2007 08:17 AM Nico Sabbi

cosmetics: moved to a separate function the code to print the characteristics of an AVStream

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

c5be140c 10/18/2007 09:50 AM Ronald S. Bultje

Make url_split() strip url options (?opt=var) from the returned hostname or
location. This fixes a regression introduced by the rewrite of
url_split() in r10605.

Patch by Ronald S. Bultje: rsbultje gmail com
Original thread: [FFmpeg-devel] [PATCH] Make RTP work with IPv6 enabled...

0f652a8e 10/16/2007 07:50 PM Benoit Fouet

Re-enable DEBUG_SEEK flag.

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

c7be2585 10/15/2007 06:03 PM Thorsten Jordan

Undefine DEBUG_SEEK.
Patch by Thorsten Jordan: tjordan macrosystem de

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

3303926c 10/01/2007 10:11 PM Ronald S. Bultje

Add checking for codecid to has_codec_parameters().
patch by Ronald S. Bultje, rsbultje gmail com
Date: Sat, 29 Sep 2007 09:25:52 -0400
Subject: [FFmpeg-devel] [PATCH] has_codec_parameters() addition

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