Michael Niedermayer
0704c44d68
avformat/cache: remove ftruncate usage, its not always available
...
In case of errors the cache file will be slightly larger than needed,
this should have no practical relevance though
Should fix build on VS201*
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7c210c4424
avformat/cache: Extend cache entries if possible instead of creating new ones
...
This reduces the number of cache entries and should significantly
reduce memory requirements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
312151bb9a
avformat/cache: avoid lseek() on reading from the cache if possible
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
ce3551896a
avformat/cache: keep cache_pos updated
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
954fc854f2
avformat/cache: cleanup cache file on cache write failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
8706910c4c
avformat/cache: Support user specified read-ahead for non seekable media
...
Fixes Ticket2406
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7018d3d351
avformat/cache: Use the correct io handle in seeking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
dedd3c89ae
avformat/cache: more informative error message
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
681559d3ff
avformat/cache: remember EOF point if hit and use it to handle SEEK_END
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
0c0168a210
avformat/cache: support non continuous caching
...
This allows using the cache protocol on top of seekable but slow protocols to
speed them up
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7dce91368f
avformat/smoothstreamingenc: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
443bd2715d
avformat/wtvdec: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
68fa549230
avformat/segment: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
96dce6f7ce
avformat/seek: move the cur variable into the loop
...
This improves readability and makes it clear that the freed
value is not used after the end of an iteration
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
3f56224a9a
avformat/rtpdec_mpeg4: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
ef05af82b2
avformat/rtpproto: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
82d1abc44c
avformat/seek: use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
e01467241f
avformat/aea: reduce false positives in probing
...
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
0d7a14e236
avformat/avidec: optimize probe
...
about 2x as fast
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
f7f4a90174
avformat/rtpdec: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
bb858e67e5
avformat/rtpdec_latm: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
ba8d2c90cd
avformat/rtpdec_xiph: use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Piotr Bandurski
75cc85b239
cdxl: fix duration
...
fixes ticket #1937
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
03b84f2fb2
avformat/rtmpproto: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
fd3e7447c8
avformat/riffdec: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
5dfae3f40a
avformat/os_support: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
41ee459e88
avformat/img2dec: check w/h in dpx_probe
...
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
b7e506b3b9
avformat/swfdec: Check frame size rectangle in probe()
...
fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
f7a4589b36
avformat/mpegtsenc: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
47b9481d9d
avformat/mpegenc: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
8db0c2ffe6
avformat/mmst: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
bcd4447173
avformat/http: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
081913aec5
avformat/id3v2: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Kieran Kunhya
9cfa68c560
mpegts: add support for Opus
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Michael Niedermayer
1728659319
avformat/westwood_aud: replace != 0 error check by <0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
4b45aa517c
avformat/asfenc: replace != 0 error check by <0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
edbbb11488
avformat/rsd: make tag_buf string larger
...
av_get_codec_tag_string() uses more that 1 char for unprintable characters.
10 years ago
Clément Bœsch
d60fb4f794
avformat/apngdec: make tag_buf string larger
...
av_get_codec_tag_string() uses more that 1 char for unprintable characters.
10 years ago
Clément Bœsch
83b0fe395b
avformat/wavdec: make start_code string larger
...
av_get_codec_tag_string() uses more that 1 char for unprintable characters.
10 years ago
Thomas Volkert
e8d57e4163
wavdec: avoid output of arbitrary chars
...
use av_get_codec_tag_string() in wav_read_header() for printing the
faulty start code from riff header
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Thomas Volkert
1a971d33eb
wavdec: refactor wav_read_header()
...
Make it more readable and display an error message in case an invalid
header is detected (the current version just returns
AVERROR_INVALIDDATA)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Martin Storsjö
8ebf02f8f5
libavformat: Only use MoveFileExA when targeting the desktop API subset
...
The MoveFileExA is available in the headers regardless which API
subset is targeted, but it is missing in the Windows Phone link
libraries. When targeting Windows Store apps, the function is
available both in the headers and in the link libraries, and thus
there is no indication for the build system that this function
should be avoided - such an indication is only given by the
Windows App Certification Kit, which forbids using the MoveFileExA
function.
Therefore check the WINAPI_FAMILY defines instead, to figure out
which API subset is targeted.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Martin Storsjö
fc308b30bb
rtpenc_mpegts: Call write_trailer for the mpegts muxer even if no output buffer exists
...
Since the mpegts muxer now can handle being called with a NULL
AVIOContext, we don't need to try to allocate one before calling
write_trailer.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Martin Storsjö
e2ce163922
mpegts: Support running the write_trailer function without an AVIOContext
...
If opening and closing dynamic buffers as AVIOContext, we may
not have any AVIOContext available when wanting to close and
deallocate the muxer. Allow calling write_trailer despite this.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Martin Storsjö
4895aa65c6
libavformat: Allow calling av_write_trailer with a NULL AVIOContext
...
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Michael Niedermayer
649c158e8c
Add FFMPEG_VERSION into the binary libs
...
This simplifies identifying from which revision a binary of a lib came from
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
869b56cae6
avformat/mpegenc: replace always enabled asserts by av_assert0()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
96ff6d3805
lavf/rtp_h261: Replace restrict with av_restrict.
...
Fixes compilation on Windows.
10 years ago
Anton Khirnov
64f7575fbd
mov: avoid a memleak when multiple stss boxes are present
...
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
10 years ago
Vittorio Giovara
76ccf114a6
rtsp: check ffurl_get_file_handle() return value
...
CC: libav-stable@libav.org
Bug-Id: CID 717844
10 years ago