Carl Eugen Hoyos
8dcd2a41ec
Allow last mov chunk to have an arbitrary number of samples.
...
Fixes ticket #673 .
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
Alex Converse
028a2375e2
mov: Make format string match variable type.
13 years ago
Alex Converse
9f8c190bb0
mov: Remove some redundant and obsolete comments.
13 years ago
Carl Eugen Hoyos
d50122eafa
Do not try to read total disc or track number if data atom is too short.
...
Fixes ticket #659 .
13 years ago
Clément Bœsch
055cda8acc
Rename remaining get_byte to avio_r8.
13 years ago
Martin Storsjö
9d77a8faf9
avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Carl Eugen Hoyos
8a3f976498
Support decoding "m1v " mpeg1video in mov.
...
Fixes ticket #579 at least for ffplay.
13 years ago
Carl Eugen Hoyos
237f13290b
movdec: Set frame_size for AMR
...
Earlier, sc->samples_per_frame was used for setting the frame size,
but all files don't have that set properly. The frame size is a
known constant for these codecs.
If frame_size isn't set, the mov/3gp muxer refuses to mux it.
This fixes stream copy of audio from
https://roundup.libav.org/file1248/Video_With_AMR-NB_Audio.3gp
to another 3gp file (roundup issue 2468).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Carl Eugen Hoyos
a487378ef5
Set frame_size for AMR_NB in mov.
...
This copies the behaviour of the amr demuxer.
13 years ago
Benjamin Larsson
69e7ad8dbc
mov: Avoid divide by zero in edit list dts handling
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Hendrik Leppkes
b76bc01034
Implement parsing of the "HandlerName" from th MP4 HDLR atom.
...
This atom typically is used for a track title.
(cherry picked from commit a356137816b4ea20a892d1fb203b11dbfedbc543)
Reviewed-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Yusuke Nakamura
05e417aa63
mov: Support empty first edit + normal second edit.
...
(cherry picked from commit df342c91e6cfceb2537c2d1b2442dd685381a0ca)
Reviewed-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
9e8dff90ef
Revert "mov: do not misreport empty stts"
...
Fixes ticket #578 .
This reverts commit 30c3d976f1
.
13 years ago
Raivo Hool
b06df70755
mov: add support for hdvd and pgapmetadata atoms
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Raivo Hool
5da35d1cb3
mov: rename function _stik, some indentation cosmetics
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Raivo Hool
80951f5cf6
mov: rename function _int8 to remove ambiguity, some indentation cosmetics
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Raivo Hool
94395fbf8c
mov: parse the gnre atom
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
ab88b25f99
lavf: use avpriv_ prefix for some dv functions.
...
They are used in libavdevice.
13 years ago
Anton Khirnov
1fa395e471
lavf: use avpriv_ prefix for ff_new_chapter().
...
It's used in libavdevice.
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
Michael Niedermayer
be401448e5
mov: Raise ctts dts_shift threshold by 1
...
This fixes issue2246neu.mp4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Raivo Hool
f055635313
mov: add support for TV metadata atoms tves, tvsn and stik
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Alex Converse
7ad06beb2c
mov: 10l: Terminate string with 0 not '0'
13 years ago
Alex Converse
8fb22c3d47
mov: Prevent illegal writes when chapter titles are very short.
13 years ago
Luca Barbato
30c3d976f1
mov: do not misreport empty stts
...
Return -1 instead of ENOMEM if entries is 0.
Fixes a av_malloc(0) crash in macosx.
13 years ago
Luca Barbato
5a7ba58657
mov: cosmetics, fix for and if spacing
13 years ago
Raivo Hool
2804d32075
mov: read album_artist atom
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Raivo Hool
dff4177546
mov: fix disc/track numbers and totals
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Tomas Härdin
e571305a71
mov: Only touch extradata in mov_read_extradata() if codec_id is what we expect
...
Extradata should only be parsed from the avss, fiel, jp2h and alac atoms for
AVS, MJPEG, Motion JPEG 2000 and ALAC respectively.
This also fixes the mov demuxer coming up with bogus extradata for some
AVC-Intra samples due to the presence of fiel atoms.
13 years ago
Carl Eugen Hoyos
d5d027682c
Use the parser for AC-3 in mov.
...
Fixes ticket #494 .
13 years ago
Anton Khirnov
609a2fa1fa
Remove some forgotten AVCodecContext.palctrl usage.
13 years ago
Michael Niedermayer
cadbe4ecd1
mov: Fix grayscale Cinepak in mov
...
Fixes Ticket165
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Baptiste Coudurier
f33be93b1b
mov: read tmcd tag and set timecode drop flag accordingly.
13 years ago
Alex Converse
ad6c7c1b52
mp4: Handle non-trivial ES Descriptors.
13 years ago
Thierry Foucu
1892052f8d
mov: Set negative Sample_duration in STTS to 1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Thierry Foucu
73c0dd939d
mov: add clcp type track as Subtitle stream.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 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
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
ee8aecd23a
Do not include intfloat_readwrite.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
add41decd9
Remove return statements following infinite loops without break
...
These statements cannot be reached and are thus not needed.
This removes a number of compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Yusuke Nakamura
ae88e9cf99
mov: Fix empty edit detection.
14 years ago
Aurelien Jacobs
e6ba3d4281
replace remaining usage of deprecated av_metadata_set2() by av_dict_set()
14 years ago
Dave Badia
d3cef0a85b
Extract rotation in MOV metadata
14 years ago
Yusuke Nakamura
f33a6a22b4
mov: Fix wrong timestamp generation for fragmented movies that have time offset caused by the first edit list entry.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Alex Converse
85e9e3a9fa
movdec: Add support for the 'wfex' atom.
...
The 'wfex' is just a Microsoft WaveFormatEx struct.
14 years ago
Diego Biurrun
b7847a3f2e
mov: Remove leftover crufty debug statement with references to a local file.
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Diego Biurrun
02a8d43adf
Replace some av_log/printf + #ifdef combinations by av_dlog.
14 years ago
Mans Rullgard
5e1166b31b
Mark some variables with av_unused
...
Most of these variables are only used in av_dlog statements, some
are required but not used by other macros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago