Janne Grunau
8a2250344b
jv: detect partial packets in the demuxer
...
Fixes fate-jv under valgrind which reports a different CRC for the last
frame from a partial read.
11 years ago
Vittorio Giovara
d509ae5be0
jvdec: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Michael Niedermayer
b948ab8132
avformat/jvdec: clear packet padding after downsize
...
Fixes: use of uninitialized memeory
Fixes: msan_uninit-mem_7fbf26b5fefe_5981_intro.jv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Luca Barbato
15739a9bd1
jvdec: Do not feed the decoder with known wrong data
...
Still assume the size value is right in non-explode mode.
11 years ago
Paul B Mahol
e518cb863e
jvdec: Fix memory leak of jv->frames
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Luca Barbato
027712e851
jvdec: Return EOF on end of file
11 years ago
Michael Niedermayer
682f0035fb
avformat/jvdec: fix doxygen comments
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
ef1b23ad21
jvdec: set channel layout
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Paul B Mahol
596814f978
jvdec: fix memleak of jv->frames
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
9d0c71e5e3
jvdemux: correct size for truncated packets
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2a70d8304d
jvdec: Make sure there is enough data for the id string.
...
Previously too little data could lead to a false detection.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
d3d1b25e69
jv demux: set video stream duration
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Joakim Plate
9712e82a4e
jvdec: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
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
Joakim Plate
833358172b
[jvd] Check return value of avio_seek and avoid modifying state if it fails
13 years ago
Anton Khirnov
f5b386afab
Reemove remaining uses of deprecated AVERROR_NOTSUPP.
14 years ago
Anton Khirnov
b4b167ecbf
jvdec: don't use deprecated CODEC_TYPE_*/PKT_FLAG_KEY
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
afbfb2a81d
Revert "jvdec: don't use deprecated url_feof()"
...
This reverts commit 1dac4d5547
.
14 years ago
Anton Khirnov
1dac4d5547
jvdec: don't use deprecated url_feof()
14 years ago
Peter Ross
7f05c164d8
jv demuxer: prevent video packet size overflow
...
In the event of overflow, the JV_PADDING state will avio_skip over
any overflow bytes (using JVFrame.total_size).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
772cb06281
jv demuxer: define JV_PREAMBLE_SIZE instead of hard coding the number
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
20c1281fe3
jv demuxer: calculate palette_size for each frame in read_header
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
bfaefd87dc
Bitmap Brothers JV demuxer
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Peter Ross
435535e411
jv demuxer: prevent video packet size overflow
...
In the event of overflow, the JV_PADDING state will avio_skip over
any overflow bytes (using JVFrame.total_size).
14 years ago
Peter Ross
57d63d43cf
jv demuxer: define JV_PREAMBLE_SIZE instead of hard coding the number
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Peter Ross
2f1084ca87
jv demuxer: calculate palette_size for each frame in read_header
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Peter Ross
48e0d22251
Bitmap Brothers JV demuxer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago