Art Clarke
56c6cf287b
Fix mem leak when user preallocates an AVFormatContext, passes it to
...
av_open_input_file(), but the file does not exist.
Patch by Art Clarke a$(surname) xuggle com
Originally committed as revision 19370 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
e7e5d1e990
If either of num or den is 0 make both 0 in av_set_pts_info().
...
Originally committed as revision 19326 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
d218a86a0d
Make sure av_set_pts_info() does not set the fields of a timebase to
...
negative values.
Originally committed as revision 19325 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
dec14949a6
Make arguments of av_set_pts_info() unsigned.
...
Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1
Originally committed as revision 19319 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
57011a13d6
use AVFormatContext->probesize in av_find_stream_info and raise default to 5M
...
Originally committed as revision 19274 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
af122d6a80
limit raw packet buffer size used for codec probing
...
Originally committed as revision 19272 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Daniel Verkamp
1a40491ef2
Add ff_ prefixes to exported symbols in libavformat/riff.h.
...
patch by Daniel Verkamp, aniel drv nu
Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
71ee651559
Print why av_find_stream_info() failed, this is a rather common question
...
during debugging ...
Originally committed as revision 19217 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
818062f2f3
if b frames are parsed, set codec->has_b_frames
...
Originally committed as revision 19147 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
e695906ec7
use dts codec probing
...
Originally committed as revision 19014 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
86cb7e33cc
fix codec probing, stop after MAX_PROBE_PACKETS and return all packets
...
Originally committed as revision 19000 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
db5dc02bd7
cast size to int64_t to avoid overflow
...
Originally committed as revision 18991 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
1bd280f730
Set frame defaults in try_decode_frame.
...
Fix:
==22211== Conditional jump or move depends on uninitialised value(s)
==22211== at 0x811E692: ff_print_debug_info (mpegvideo.c:1137)
==22211== by 0x82E6A7B: decode_frame (h264.c:7897)
==22211== by 0x80F2823: avcodec_decode_video2 (utils.c:564)
[...]
==22211== Uninitialised value was created by a stack allocation
==22211== at 0x8064AA3: try_decode_frame (utils.c:1845)
Originally committed as revision 18483 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
e472ea34c4
reindent
...
Originally committed as revision 18480 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
d2e63e8b05
Simplify packet duplication code in ff_interleave_add_packet.
...
Behaviour only changes if pkt->destuct neither av_destruct_packet,
av_destruct_packet_nofree nor NULL, in which case the new code avoids a double free.
Originally committed as revision 18452 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
80d403fc19
Get rid of av_destruct_packet_nofree and use NULL instead.
...
It is still used in comparisons to keep ABI compatibility.
Originally committed as revision 18431 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
655d47c2cb
Make try_decode_frame() use the new avcodec_decode_* API.
...
Patch by Thilo Borgmann thilo.borgmann AT g00glemail dot com.
Originally committed as revision 18408 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
feb993e579
Add av_shrink_packet function for use in av_get_packet that reduces pkt->size
...
and ensures the following padding is correctly initialized to 0.
Originally committed as revision 18378 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
cdd8930e6a
Move av_packet_*() functions from libavformat/ to libavcodec/, where the
...
AVPacket structure now resides also.
Patch by Thilo Borgmann thilo.borgmann googlemail com, see the mailinglist
thread "Google Summer of Code participation" for additional discussion.
Originally committed as revision 18353 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
3a5601885b
move max analyze duration check before considering new packet
...
Originally committed as revision 18051 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
74f5ae847d
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
16 years ago
Michael Niedermayer
85b4230f68
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
16 years ago
Michael Niedermayer
32d885926d
add avformat_seek_file()
...
Originally committed as revision 17956 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
3a4f91f5ed
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
16 years ago
Diego Biurrun
e658657528
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
16 years ago
Ivan Schreter
61c23c155c
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
16 years ago
Diego Biurrun
c04920978e
cosmetics: Fix indentation.
...
Originally committed as revision 17756 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
827f7e285b
deprecate old metadata API
...
Originally committed as revision 17690 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
012867f05b
use new metadata API in libavformat/utils.c
...
Originally committed as revision 17687 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
9e6c124a87
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
16 years ago
Måns Rullgård
f166f2f435
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
16 years ago
Ivan Schreter
5fa61b26f7
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
16 years ago
Reimar Döffinger
fe02d9e719
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
16 years ago
Reimar Döffinger
8514272472
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
16 years ago
Michael Niedermayer
3797c74ba5
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
16 years ago
Ivan Schreter
27ca0a79c9
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
16 years ago
Ivan Schreter
810c451b02
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
16 years ago
Michael Niedermayer
7f123e7f8a
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
16 years ago
Michael Niedermayer
1d14361dec
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
16 years ago
Michael Niedermayer
c132938d52
Waste less space for printing timebases.
...
Originally committed as revision 17505 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
fa0e036d7f
Print all timebases (idea from netgem)
...
Originally committed as revision 17502 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Schreter
346db3ef7f
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
16 years ago
Michael Niedermayer
73d65a96ae
Be less noisy with invalid pts/dts.
...
Originally committed as revision 17482 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Schreter
b1fa494205
Add convergence_duration to AVCodecParserContext.
...
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17468 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Schreter
6363af44da
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
16 years ago
Art Clarke
d5cce0a434
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
16 years ago
Aurelien Jacobs
949cd9783b
remove now useless av_set_program_name() function
...
Originally committed as revision 17113 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Francesco Cosoleto
ced06bd8fe
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
16 years ago
Stefano Sabatini
8e2fd8e1d4
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
16 years ago
Baptiste Coudurier
4f0f9bddac
let packet pass through when no timestamps
...
Originally committed as revision 16982 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago