Martin Storsjö
dc53858063
wtv: Check the return value from gmtime
...
On MSVC, gmtime returns NULL for values outside of their supported
range (and these show up in our fate test). This doesn't seem
to affect the actual fate test result.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
6e9651d106
lavf: remove AVFormatParameters from AVFormatContext.read_header signature
13 years ago
Janne Grunau
68e252f548
wtv: fix memleaks during normal operation
13 years ago
Mans Rullgard
3383a53e7d
lavu: replace int/float punning functions
...
The existing functions defined in intfloat_readwrite.[ch] are
both slow and incorrect (infinities are not handled).
This introduces a new header with fast, inline conversion
functions using direct union punning assuming an IEEE-754
system, an assumption already made throughout the code.
The one use of Intel/Motorola extended 80-bit format is
replaced by simpler code sufficient under the present
constraints (positive normal values).
The old functions are marked deprecated and retained for
compatibility.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
13 years ago
Martin Storsjö
3607ed70d5
Remove leftover includes of strings.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Alex Converse
4682a1dc3a
mpegts: Add support for Sections in PMT
13 years ago
Alex Converse
c3bc6096f2
mpegts: Add support for multiple mp4 descriptors
13 years ago
Anton Khirnov
84ad31ff18
lavf: replace av_new_stream->avformat_new_stream part II.
...
Manual replacements are done in this commit.
In many cases, the id is some constant made up number (e.g. 0 for video
and 1 for audio), which is then not used in the demuxer for anything.
Those ids are removed.
13 years ago
Anton Khirnov
3b3bbdd3e6
lavf,lavd: replace av_new_stream->avformat_new_stream part I.
...
Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
13 years ago
Diego Biurrun
24c9babaaf
doxygen: Fix parameter names to match the function prototypes.
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Max Horn
ca402f32e3
handle malloc failures in ff_get_wav_header
...
ff_get_wav_header is reading data from a WAVE file and then uses it
(without validation) to malloc a buffer. It then proceeded to read
data into the buffer, without verifying that the allocation succeeded.
To address this, change ff_get_wav_header to return an error if
allocation failed, and adapted all calling code to handle that error.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Anton Khirnov
f5b386afab
Reemove remaining uses of deprecated AVERROR_NOTSUPP.
14 years ago
Anton Khirnov
e42500cb4f
lavf: replace some more avio_seek(SEEK_CUR) with avio_skip
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
45a8a02a41
lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
3e68b3ba7b
avio: deprecate url_ferror
...
AVIOContext.error should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
66e5b1df36
avio: deprecate url_feof
...
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
a2704c9712
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
e356fc57a2
lavf: replace all uses of url_fskip with avio_seek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
6b4aa5dac8
avio: avio_ prefix for url_fseek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
b7effd4e83
avio: avio_ prefixes for get_* functions
...
In the name of consistency:
get_byte -> avio_r8
get_<type> -> avio_r<type>
get_buffer -> avio_read
get_partial_buffer will be made private later
get_strz is left out becase I want to change it later to return
something useful.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
8d9ac969cb
avio: rename av_alloc_put_byte -> avio_alloc_context for consistency
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
ae628ec1fd
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
1a973feb45
wtv: ignore empty data_guid chunks
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
68137ba386
wtv: mark streams intended for hearing or visual impaired persons
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Peter Ross
74571e333c
reindent after last commit
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
e4f85b8499
wtv: do not use flag in stream_guid chunk to determine if stream is valid, as this method is unreliable
...
This fixes roundup issue 2556.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
e6fb5a4f78
add ff_index_search_timestamp and ff_add_index_entry
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
f61dee2fe4
wtv: filesystem implementation
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Diego Elio Pettenò
c6610a216e
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
...
This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.
14 years ago
Peter Ross
b070bcfe8a
wtv: ignore VIDEOINFOHEADER2 picture aspect ratio information, as it is unreliable
...
Originally committed as revision 26327 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
5a477e5960
fix indentation
...
Originally committed as revision 26278 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
866009ea19
wtv: only process timestamp_guid chunks for streams that we know about
...
Originally committed as revision 26277 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
a5a36a7970
wtv: do not repopulate codec information after we have seen data chunks
...
Originally committed as revision 26276 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
bf2e54174e
wtv: stop processing chunks if length is smaller than chunk header
...
Originally committed as revision 26275 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
9372f31e03
wtv: fix typo
...
Originally committed as revision 26274 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
6780f48846
wtv: obtain codec information from stream2_guid chunks, if present
...
Originally committed as revision 26208 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
17e33f662a
wtv: display warning if scrambled stream is detected
...
Originally committed as revision 26197 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
3900707866
wtv: parse MPEG2 descriptor events
...
Originally committed as revision 26126 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
0af1671e53
wtv: only warn about unknown subtype, if it actually unknown
...
Originally committed as revision 26123 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
945df9703b
wtv: use correct names for subtitle and language guids
...
Originally committed as revision 26122 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Peter Ross
82ca054a63
Windows Televison (WTV) demuxer
...
Originally committed as revision 26094 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago