Neil Brown
d6a0906ad1
When looking for the last packet in each
...
stream, so as to calculate the duration, don't stop
as soon as all streams have seen at least one packet.
Otherwise the duration will be shorter than it
should be. We must keep reading to the end-of-file.
patch by neilb suse de
Originally committed as revision 10139 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Neil Brown
bf494092b0
There is no guarantee that every stream will
...
have a start_time found (though it is likely),
so check that the start_time is defined before
calculating a duration.
(patch by neilb suse de)
Originally committed as revision 10138 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
df886e7e02
fix cur_dts at the end of av_estimate_timings_from_pts()
...
Originally committed as revision 10137 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
c7385375bc
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
18 years ago
Michael Niedermayer
48a59dfe8e
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
18 years ago
Michael Niedermayer
8258354849
correct initial timestamps which have AV_NOPTS_VALUE
...
Originally committed as revision 9917 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
02b15cc811
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
18 years ago
Michael Niedermayer
10a7571b09
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
18 years ago
Michael Niedermayer
90f66438a5
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
18 years ago
Michael Niedermayer
41415d2856
try exact match before case insensitive match in codec_get_id
...
Originally committed as revision 9808 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
e0c850a8c4
Avoid misdetecting acelp in ASF as MP3.
...
fixes 2001-04-11.asf
Originally committed as revision 9799 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Panagiotis Issaris
85565db0f8
Replace all occurrences of AVERROR_NOTSUPP with AVERROR(ENOSYS).
...
Originally committed as revision 9763 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Panagiotis Issaris
6f3e0b2174
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
...
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Panagiotis Issaris
769e10f068
Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
...
Originally committed as revision 9759 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
82e4ac2c97
Move av_gettime() back to lavf/utils.c
...
Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
b3fc092548
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
18 years ago
Aurelien Jacobs
45da8124a0
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
18 years ago
Måns Rullgård
14d194d5d8
remove unused functions
...
Originally committed as revision 9520 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
75e61b0e88
use new string functions
...
based on patch by Reimar Döffinger
Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
90b5b51eab
misc typo fixes
...
Originally committed as revision 9291 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
755bfeabcc
misc spelling fixes
...
Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Stefano Sabatini
26ef3220cf
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
Originally committed as revision 9288 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ronald S. Bultje
19ecf88288
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
18 years ago
Ramiro Polla
659596f002
Export av_init_packet
...
Originally committed as revision 9211 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Benoit Fouet
0ba0c8debb
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
18 years ago
Daniel Cardenas
711737af8e
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
18 years ago
Benoit Fouet
efd5fc538e
return right format in set_codec_from_probe_data
...
Originally committed as revision 8867 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
e7047005cb
properly compile code for REDIR_DEMUXER
...
Originally committed as revision 8840 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Luca Abeni
578688fad5
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
18 years ago
Benoit Fouet
7d88b5ca02
more format abbreviations
...
Originally committed as revision 8798 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
db2a0e229f
dont assert(0) due to buggy rm demuxer
...
Originally committed as revision 8790 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
b5a3541da1
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
18 years ago
Michael Niedermayer
b237eb800d
init packet before calling the demuxer
...
fixed random/uninitalized AVPacket->pos
Originally committed as revision 8781 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
61bc79ec9c
remove possibly broken wince cruft
...
Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Aurelien Jacobs
57004ff1d7
add an enum for need_parsing
...
Originally committed as revision 8742 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Joakim Plate
a74008a4c3
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
18 years ago
John Donaghy
6fea687ec1
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
18 years ago
Michael Niedermayer
87e8788680
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
18 years ago
Víctor Paesa
e19fbbec95
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
18 years ago
Michael Niedermayer
6cc65ab3c6
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
18 years ago
Michael Niedermayer
7975048628
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
18 years ago
Wolfram Gloger
df7625ed62
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.
Fix this by calling av_read_frame_flush() and eliminate code
duplication in the process.
The additional hunk gives more detailed error messages.
patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de
Originally committed as revision 8465 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
028d6f3e71
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
18 years ago
Michael Niedermayer
a843d1ff32
i think this is more correct
...
Originally committed as revision 8452 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
bc4efe42dd
remove incorrect special case for audio
...
Originally committed as revision 8433 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
7e4baa66e0
fix indention
...
Originally committed as revision 8432 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
d9e1efb7f8
reorder pts into dts support
...
Originally committed as revision 8431 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
a7f7965a27
remove useless if()
...
Originally committed as revision 8428 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
14eb3345ba
simplify
...
Originally committed as revision 8427 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
41c8a56a14
simplify
...
Originally committed as revision 8426 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago