Michael Niedermayer
8d960fbc70
ipmovie: fix FPE
...
Fixed Ticket807
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
20af3af575
mov: replace AVERROR(EOF) with AVERROR_EOF.
13 years ago
Michael Niedermayer
077b086dea
avio: remove ENOTSUP mention in doxy as its not available on all supported platforms
...
and thus cannot be used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
7feb7f16a8
mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps()
...
Only the OPAtom demuxing logic is guaranteed to have index tables, meaning OP1a
files that lack an index would cause SIGSEGV.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
432f0e5b7d
nut: support 10bit YUV
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Diego Biurrun
a55eb1586c
oma: make header compile standalone
13 years ago
Nicolas George
b0aaf304a7
Replace PATCHWELCOME by relevant error codes.
...
This supersedes commit 154c0a8
.
The bug was also reported by Rafaël Carré.
13 years ago
Alex Converse
41bdd4adc4
mpegts: Suppress invalid timebase warnings on DMB streams.
...
timestamp_len and timestamp_res intialize to zero.
13 years ago
Alex Converse
d9b89b23df
mpegts: Fix typo in handling sections in the PMT.
...
This was an error rebasing 4682a1dc3a
for
commit. The "pes" variable guaranteed to be NULL in that block.
13 years ago
Michael Niedermayer
154c0a8c98
replace ENOTSUP by AVERROR_PATCHWELCOME
...
This unbreaks compilation
Found by: jb
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c1acd58198
roq: fix excessive memory alloc
...
Fixes Ticket802
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3c7f75bd84
avidec: move eof check before continue.
...
Fixes a infinite loop
Fixes half of Ticket800
Bug found by Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
5b718009b2
mxfdec: Sanity-check SampleRate
...
This avoids a SIGFPE if SampleRate is missing or set to naughty values.
13 years ago
Tomas Härdin
1888bd1b6d
mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps()
...
Only the OPAtom demuxing logic is guaranteed to have index tables, meaning OP1a
files that lack an index would cause SIGSEGV.
13 years ago
Tomas Härdin
54cbbdd25a
mxfdec: Remove unused variables
13 years ago
Tomas Härdin
6e9081f4d8
mxfdec: Make sure x < index_table->nb_ptses
...
Without this the demuxer will SIGSEGV on files with IndexEntryCount < IndexDuration
13 years ago
Tomas Härdin
085249a379
mxfdec: Ignore the last entry in Avid's index table segments
...
The last entry is the total size of the essence container.
Previously a TemporalOffset error would be logged, even though segments like
these are expected.
13 years ago
Michael Niedermayer
b08a742526
siff: simplify code by using ffio_limit()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1dcce49e10
soxdec: check av_malloc return.
...
Bug found by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
1c66862472
mpegts: rename payload_index to payload_size
...
It holds the size of the current payload.
13 years ago
Luca Barbato
02e8f03296
segment: introduce segmented chain muxer
...
It behaves similarly to image2 muxer
13 years ago
Michael Niedermayer
9c5104e84e
dsicin demuxer: Fix excessive malloc()
...
use ffio_limit()
Fixes Ticket 790
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e39eeb10d1
lavf: split out ffio_limit()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f371396dfb
rl2demux: Fix FPE
...
Fixes Ticket788
Bug found by Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1c73391d7d
siff: Fix excessive memory allocation.
...
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
af3f2a87da
mov: detect EOF in mov_read_dref()
...
This fixes a (near) infinite loop and Ticket783
Bug found by: cosminamironesei
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
93fc5a9ff6
lavf: force threads to 1 in avformat_find_stream_info()
...
Fixes avformat_find_stream_info() on streams with number of frames <
thread count.
13 years ago
Michael Karcher
f40e7eb573
lavf: add OpenMG audio muxer.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
ee20b332c8
omadec: split data that will be used in the muxer to a separate file.
13 years ago
Anton Khirnov
08f7af0c37
lavf: rename oma.c -> omadec.c
13 years ago
Nicolas George
6d7b50117a
sbgdec: change -1 into AVERROR(EINVAL).
...
This is not as accurate as ELOOP, but there is an explicit error message
just before anyway.
13 years ago
Michael Niedermayer
4734fb0ece
sbgdec: Replace ELOOP by -1 to fix compilation on win32.
...
This should be replaced by a more appropriate error code of course but
we should not leave compilation broken until that is decided.
Found-by: jb
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
9cb6a39c46
sbgdec: replace EOVERFLOW with ENOMEM.
...
This should fix track issue #781 , regarding compilation with
i686-w64-mingw32-gcc.
13 years ago
Michael Niedermayer
53b6503184
avienc: Fix rawvideo 32bit
...
Bug found by: Rik Maes <rik.maes54@gmail.com>
Change based on suggestion by Rik Maes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f890cb948c
mtvdemuxer: fix segfault caused by truncated packets.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ee181f84a3
lavf: print an error if a packet has been truncated due to filesize
...
in av_get_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
207d9eab5a
txd/westwood: remove demuxer specific overallocate solutions as the new generic code
...
handles it fine.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
559ae20dda
lavf: Update AVIOContext.maxsize when hitting the end.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
0e764cf541
mxfdec: Don't parse slices or DeltaEntryArrays
...
The most recent demuxing/seeking code doesn't need them
13 years ago
Tomas Härdin
f98726551c
mxfdec: Remove dead/useless code
13 years ago
Tomas Härdin
2eba8da675
mxfdec: Hybrid demuxing/seeking solution
...
This uses the old demuxing code for OP1a and separate demuxing code for OPAtom.
Timestamp output is added to the old demuxing code.
The seeking code is made to seek to the start of the desired EditUnit only,
from which the normal demuxing code takes over (if OP1a). This means we don't
use delta entries or slices, only StreamOffsets.
OPAtom seeking basically works like before.
This also makes D-10 seeking behave the same way as OP1a and OPAtom. In other
words, we allow seeking before the start or past the end for D-10 too.
This fixes ticket #746 .
13 years ago
Tomas Härdin
36c305f9db
mxfdec: Add mxf_edit_unit_absolute_offset()
...
This maps an EditUnit in an index table to the corresponding absolute offset
in the file.
13 years ago
Tomas Härdin
b56adc7842
mxfdec: Replace zero IndexDurations with st->duration
...
The mxf_d10 muxer outputs files with zero IndexDurations..
13 years ago
Tomas Härdin
2212e040b7
mxfdec: Add "fake" index to MXFIndexTable to assist seeking
...
This changes mxf_compute_ptses() to be used for MXFIndexTable, and also adds
code for computing the fake index to it.
This also temporarily disables PTS computation. A future patch will restore it.
13 years ago
Tomas Härdin
8ce41721a4
mxfdec: Add MXFIndexTables
...
This structs collects MXFIndexTableSegments belonging to one IndexSID and some
other bits of useful information.
13 years ago
Tomas Härdin
31029e30fa
mxfdec: Move mxf_read_packet*() near the bottom of the file
...
This simplifies future commits.
13 years ago
Vladimir Pantelic
65a25adc97
mpegts: replace some magic numbers with the existing define
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
62adc60b97
avidec: Check that the header chunks fit in the available filesize.
...
Fixes Ticket771
Bug found by: Diana Elena Muscalu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f72601d063
txddemux: Limit allocated packets to filesize.
...
Fixes Ticket772
Bug found by: Diana Elena Muscalu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a000975444
thp: simplify overallocate checks.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago