Michael Niedermayer
74aa41bae4
Fix detection of MPEG4 in MPEG-PS.
...
Fixes issue568.
Originally committed as revision 15152 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
ca9c5a4d37
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
17 years ago
Michael Niedermayer
f0aaa16fdf
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
17 years ago
Ronald S. Bultje
452d3edb37
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
17 years ago
Ronald S. Bultje
f1c80e3578
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
17 years ago
Aurelien Jacobs
d63f529df7
remove useless assignment (st is never read after this line)
...
Originally committed as revision 14985 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Andreas Öman
f1588ed525
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
17 years ago
Reimar Döffinger
aecf157ed0
Mark several libavformat arrays const
...
Originally committed as revision 14950 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
c30a4489b4
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
17 years ago
Michael Niedermayer
3c9769a008
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.
Fixes video_stalls_at_start.wmv
Originally committed as revision 14746 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
ea452b54f0
strcasecmp() requires #include <strings.h>
...
Originally committed as revision 14728 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
cb5b96cde0
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
17 years ago
Stefano Sabatini
8163c870b0
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
17 years ago
Stefano Sabatini
c97429e22b
Implement avformat_version().
...
Originally committed as revision 14667 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
5c5b1731b7
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%
of total decoding time), even with input files of several minutes.
After the change, the time spent in this function is barely measurable
with oprofile.
Originally committed as revision 14654 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
aaec4e03e9
check url_fseek return value, update seek reg tests
...
Originally committed as revision 14489 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Erik Hovland
be390a4e2e
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
17 years ago
Michael Niedermayer
744b4c02c2
Move the codec_id overriding at a slightly better place.
...
Originally committed as revision 14234 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
283c061936
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
17 years ago
Michael Niedermayer
dd57251cb0
Remove old hackish codec probe system.
...
Originally committed as revision 14193 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
2a72e494c3
Use strcmp() instead of strncmp() in set_codec_from_probe_data().
...
Originally committed as revision 14190 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
25d3fb7374
indent
...
Originally committed as revision 14189 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
942de2f4fa
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
17 years ago
Michael Niedermayer
312d24d5e9
Add mpegvideo and H.264 to the codec probe.
...
Originally committed as revision 14187 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
55823964dc
indent
...
Originally committed as revision 14185 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
0bef08e516
New codec probing system try #1 .
...
Originally committed as revision 14184 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
9d3b9f2cce
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
17 years ago
Michael Niedermayer
64cd3108df
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
17 years ago
Michael Niedermayer
3179da621a
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
17 years ago
Michael Niedermayer
cdb5af79e3
indent
...
Originally committed as revision 14133 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
7efeb73a5a
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
17 years ago
Michael Niedermayer
6d77d9acf7
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
17 years ago
Ronald S. Bultje
1e2802c5cf
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
17 years ago
Ronald S. Bultje
e145ce2027
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
17 years ago
Baptiste Coudurier
150611474e
give context to av_log
...
Originally committed as revision 14012 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
3041a4a13d
Also print flags with FF_FDEBUG_TS.
...
Originally committed as revision 13987 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
f3b5a1a260
make av_find_stream_info find frame_size for aac too
...
Originally committed as revision 13976 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
4d35bf74f9
Make av_find_stream_info() find the frame_size for vorbis.
...
Originally committed as revision 13972 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
6e1aa0f383
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
17 years ago
Michael Niedermayer
c924ca78b6
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
17 years ago
Michael Niedermayer
796d200a77
Prevent duration calculation code from generating random durations for
...
vorbis in ogg.
Originally committed as revision 13958 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
ade8d8b939
uniformize AVStream->priv_data freeing in av_close_input_stream
...
Originally committed as revision 13838 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
ccafd47251
factorize read_header failure freeing code
...
Originally committed as revision 13837 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Art Clarke
6919e54c00
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
17 years ago
Michael Niedermayer
45b2b05f8e
Make timestamp debugging work nicer.
...
Originally committed as revision 13728 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
fc9c2d53c3
Merge declaration and initialization.
...
Originally committed as revision 13672 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
ca162a5004
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
17 years ago
Michael Niedermayer
820ad60cd9
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
17 years ago
Michael Niedermayer
5853423c3f
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
17 years ago
Andreas Öman
1686cce6e6
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
17 years ago