Carl Eugen Hoyos
0915b531bc
Rename "AVClass class" as "AVClass component_class".
...
The aix header math.h defines "extern int class()" for C.
12 years ago
Carl Eugen Hoyos
f91833210e
Set block_align when reading QDM2 in mov.
...
Fixes ticket #2718 .
12 years ago
Alexandre Sicard
b1d61eb7aa
avformat/mov: ignore samples overflowing next_root_atom
...
This fixes #2657 .
ISML movies produced by Microsoft Expression Encoder 4 seem to have invalid
sample entries in their trun/tfhd for data tracks. As a result, too much bytes
are read for these tracks to the point that next_root_atom can go out of
buffer, which makes the encoding fail if the input is not seekable.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Alexandre Sicard
8912029031
avformat/mov: compute dts_shift with trun cts
...
Some movies have negative composition time offsets in their trun, causing pts <
dts errors. This patch makes use of dts_shift to handle them.
Signed-off-by: Alexandre Sicard <alexandre.sicard@smartjog.com>
12 years ago
Michael Niedermayer
29e97cd6c3
avformat/mov: Try to detect and support files with invalid sample sizes
...
Fixes Ticket2605
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
5292dac34c
avformat/mov: Rename alt_sample_size so its name matches what it is
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Piotr Bandurski
7baef22fca
mov: set block_align for MACE 3:1 and MACE 6:1
...
fixes remuxing of audio track from mov to aifc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
2832ea26f3
Remove commented-out debug #define cruft
12 years ago
Diego Biurrun
e0f8be6413
avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriate
12 years ago
Diego Biurrun
ac9362c5d9
Move misplaced file author information where it belongs
12 years ago
Piotr Bandurski
e26b066cd8
libspeex: support ZygoAudio (quality 10 mode)
...
Fixes "quality 10" mode from Ticket1873
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
1ecdf8912b
avformat: av_log_ask_for_sample() ---> avpriv_request_sample()
12 years ago
Anton Khirnov
85a5bc054c
lavf: remove disabled FF_API_R_FRAME_RATE cruft
12 years ago
Anton Khirnov
56daf10e03
mov: use the format context for logging.
...
CC:libav-stable@libav.org
12 years ago
Michael Niedermayer
2ccaab9709
mov: fix self referencing timecode tracks
...
Fixes read after free.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
199683c898
mov: remove unused function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Matthieu Bouron
59d40fc7e6
lavf/mov: skip version and flags attributes in mov_read_chan function
...
Fixes ticket #1764 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0a84174f2d
mov: prevent double free if the caller replaces the io context.
...
Fixes Ticket2148
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Reimar Döffinger
c5142a95a5
Support more AVC-Intra files
...
Followup to http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/151321
patch by Reimar and Thomas Mundt fixes some AVC-Intra files from
different tickets.
It does not fix http://samples.ffmpeg.org/ffmpeg-
bugs/trac/ticket524/AVCI50.mov
Authors of this commit are: Reimar and Thomas Mundt
Patch and commit message mostly taken from ffmpeg-devel, mail by Carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
c14f8a52b0
lavf/mov: fix timecode track reference usage.
12 years ago
Clément Bœsch
8d398f40b4
lavf/mov: simplify timecode track ref.
...
There can be only one track reference. The multiple tref handling is
handled at a different level.
12 years ago
Hendrik Leppkes
765158dd82
mov: fix parsing of the chap atom.
...
This was broken in 0d96ec19eb
under the
assumption that there is only one tref leaf atom.
Fixes Ticket #2081 .
12 years ago
Carl Eugen Hoyos
67abe21c0b
mov: fix handling of odd sized yv12
...
Part 1 of 2 to fix Ticket339
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Janne Grunau
bb2bab92e7
mov: handle h263 and flv1 for codec_tag 'H','2','6','3'
...
The sample in https://bugzilla.libav.org/show_bug.cgi?id=393 and
samples/F4V/H263_NM_f.mp4 both have codec_tag H263 for different
codecs. H263 is apparently used by Flash Media Server for Sorensen
Spark videos.
Patch based on commit 5442083b1c
by
Carl Eugen Hoyos. Fixes bug 393.
12 years ago
Peter Ross
f540851ce3
mov: parse @PRM and @PRQ metadata tags
...
These tags describe the product and quicktime library version respectively.
Originate from Adobe Premier, but some other products use them.
12 years ago
Janne Grunau
8cc2fa1e5d
mov: validate number of DataReferenceBox entries against box size
...
Avoids a 2G memory allocation and parsing of random data in
mov_read_dref(). The fuzzed sample sample.mp4_s224424 triggers this.
12 years ago
Janne Grunau
80b6b31417
mov: compute avg_frame_rate only if duration is known
...
Fixes an assert in fuzzed sample sample.mp4_s265930.
12 years ago
Carl Eugen Hoyos
5442083b1c
Support Sorenson Spark in f4v files streamed by Flash Media Server.
12 years ago
Justin Ruggles
261e9348ef
lavf: add a common function for selecting a pcm codec from parameters
12 years ago
Michael Niedermayer
e6305f7631
mov: set flags to indicate that byte wise seeking is not supported.
...
Fixes Ticket1831
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Carl Eugen Hoyos
ab82b77822
Fix possible NULL-pointer dereference when decoding mov files.
...
Fixes CID743440, introduced in 850e5c0
.
12 years ago
Xidorn Quan
8ee6db393c
mov: add more udta meta data recognition
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Carl Eugen Hoyos
850e5c041d
Read QuickTime version 1 audio fields in broken mov files.
...
Matrox XMIO capture boards write files with major brand "JUNK"
and compatible brand "qt " that contain QuickTime version 1
audio fields.
Fixes ticket #1881 .
12 years ago
Michael Niedermayer
87d073eacc
mov: Dont try to calculate with unknown durations, fix division by 0
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
4392e69ad4
mov: check stps correctly, avoid overreading 1 element.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
a903f8f087
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h
...
Also reorder some other #include when applicable.
12 years ago
Michael Niedermayer
eb3dc23705
mov: Make sure no streams after the header lack a timescale.
...
Fixes division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
58c2c17f1d
mov_probe: use correct variable
...
Fixes CID739867
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Carl Eugen Hoyos
2fdc6f355c
Do not detect mov with maximum score if the atom size is too small.
...
Fixes mpegts-in-mov, ticket #987 / issue 2223.
12 years ago
Carl Eugen Hoyos
fa190b3cd7
Improve MPEG-PS-in-MOV detection.
...
Fixes issue 1520.
12 years ago
Michael Niedermayer
217193facd
bavformat/mov: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Petter Ericson
7abf394814
mov.c: Check for stsd + m1s tag indicating MOV-wrapped MPEG-PS, and force continued probing if found.
...
Fixes Ticket241
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a4fe661157
mov_probe: fix integer overflows
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
adbb75dbd8
mov: fix time types related to mov_metadata_creation_time
...
Fixes Ticket1817
Based on patch by: Przemyslaw Wesolek <przemyslaw.wesolek@go.art.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6d55a40b00
mov: print warning if ff_get_wav_header() fails
...
Fixes CID717497
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
d067e25437
mov: fix integer avoption types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f7f5370b4b
mov: add option to ignore edit lists.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
594b1fcb28
mov: add av_dlog() to dump edit lists.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3ceeb01c06
mov: only print multiple edit lists warning for actually unsupported cases
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c0209facd2
mov: remove default of 1024 sample skip for aac.
...
It is not correct in all cases and it is less predictable than a skip of 0
for user applications.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago