Michael Niedermayer
eedd914873
avformat/pva: Make sure the header is large enough before reading the timestamp from it
...
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f34b5dc6d58_2674_PVA_test-partial.pva
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
5ec3c7b7c1
avformat/pva: Make sure the first byte of pes_header_data has been initialized
...
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f53c1d0e95c_2674_PVA_test-partial.pva
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
e0f8be6413
avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriate
12 years ago
Michael Niedermayer
28b9099ac1
pva_probe: make buffer related pointers and function arguments const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Diego Biurrun
6774247a9d
avformat: Drop pointless "format" from container long names
13 years ago
Martin Storsjö
20234a4bd7
cosmetics: Align muxer/demuxer declarations
...
Also add missing trailing commas, break long codec_tag lines and
add spaces in codec_tag declarations.
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
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
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
Reimar Döffinger
e91230a589
Improve PVA probe function.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
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
384c9c2fa7
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit a2704c9712
)
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
74b3f67c9c
lavf: replace all uses of url_fskip with avio_seek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit e356fc57a2
)
14 years ago
Anton Khirnov
f59d8ff8cd
avio: avio_ prefix for url_fseek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 6b4aa5dac8
)
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
e63a362857
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>
(cherry picked from commit b7effd4e83
)
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
471fe57e1a
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit ae628ec1fd
)
14 years ago
Anton Khirnov
ae628ec1fd
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Diego Elio Pettenò
66355be3c3
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.
(cherry picked from commit c6610a216e
)
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
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
6125d86597
technically mp2 in pva needs AVSTREAM_PARSE_FULL
...
Originally committed as revision 18966 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivo van Poorten
896873b564
avoid possibly uninitialized return value
...
(found by clang static analyzer)
Originally committed as revision 18669 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
bde15e74de
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
...
patch by Stefano Sabatini, stefano.sabatini-lala poste.it
along with some spelling/consistency fixes for the long names by me
Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
e03caf2efd
Implement read_timestamp and enable seeking in PVA files.
...
Originally committed as revision 11455 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
ffc2934112
cosmetics
...
Originally committed as revision 11454 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
e661f76051
remove unnecessary check
...
Originally committed as revision 11453 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
9ae092036b
use ff_parse_pes_pts for parsing an MPEG-PES timestamp
...
Originally committed as revision 11452 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
5e40d0e898
cosmetics, superfluous space
...
Originally committed as revision 11430 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
71e1080e28
proper check for valid pva_pts
...
Originally committed as revision 11429 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
dba13944f0
do not return an error, but warn and recover when encountering an audio packet
...
that should countain a signaled mpeg-pes packet.
Originally committed as revision 11428 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
7705cf7e15
validate streamid before use
...
Originally committed as revision 11427 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
fe332ad66e
change audio codec id to mp2
...
Originally committed as revision 11426 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
0e8a207ff8
proper type and initialization of pva_pts
...
Originally committed as revision 11425 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
6a5ef2934c
remove unnecessary shift
...
Originally committed as revision 11424 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ivo van Poorten
3feb44a9be
TechnoTrend PVA Demuxer
...
Originally committed as revision 11371 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago