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
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
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
Diego Biurrun
e4cbf7529b
Give all anonymously typedeffed structs in headers a name
...
Anonymous structs cannot be forward declared and have no benefit.
12 years ago
Michael Niedermayer
f7f5370b4b
mov: add option to ignore edit lists.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
c4dba58f47
isom: fix redundant redeclaration of ff_mov_read_chan().
...
Silence a GCC warning. A leftover of the disabled version is still
available in lavf/isom.c.
12 years ago
Yusuke Nakamura
d17d0ec8c2
mov: support random access point grouping
...
Frames described by this grouping are the starter of a closed or
an open GOP.
This is useful for open GOP of H.264 stream which is not described
by sync sample atom.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Michael Niedermayer
ad8dabfe9c
mov/aac: skip initial aac padding
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
0d96ec19eb
mov: parse tref atom.
13 years ago
Yusuke Nakamura
accea4d9d8
mov: Fix detecting there is no sync sample.
...
Stss atom without entries doesn't mean every sample is a sync sample.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Reimar Döffinger
50059bde77
MOV: Fix old-style muxed raw-audio data.
...
This patch fixes the sample from trac issue #522 .
The issue is that the mov demuxer insists on using its
calculated sample_size (which is nonsense for old-style tracks)
instead of the one encoded in the track.
The old raw audio code should be using the value in stsz, because
the size of a single sample never makes sense for the size of
a full audio packet, whereas the new code will multiply the
sample size by the chunk size, so it should use the calculated value.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Martin Storsjö
383a3b64cb
movdec: Restart parsing root-level atoms at the right spot
...
If parsing moov+mdat in a non-seekable file, we currently
abort parsing directly after parsing the header of the mdat
atom. If we want to continue parsing later (if looking to
parse later fragments), we need to skip past the content of the
mdat atom, otherwise we end up parsing the content of the mdat
atom as root level atoms.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
5be805d38c
mov: Use defines for sample flags in fragments
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
3eec23f3cd
mov: Use defines for trun flags
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
73328f24fa
mov: Use defines for tfhd flags
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
167f3b8de7
libavformat: Add an ff_ prefix to some lavf internal symbols
...
Prefix the functions/tables brktimegm, pcm_read_seek,
dv_offset_reset, voc_get_packet, codec_movaudio_tags,
codec_movvideo_tags.
After this, lavf has no global symbols without the proper prefix.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Janne Grunau
7f19bdc2a2
movdec: fix dts generation in fragmented files
...
Do not use AVStream's duration for dts generation since it contains in
some cases the duration of the whole file instead of duration of the
samples in the moov. This happens if the mdhd holds the duration of the
whole file but has no entries or a zero duration in its stts.
13 years ago
Clément Bœsch
77971609de
mov: honor tmcd flags while extracting timecode meta.
13 years ago
Martin Storsjö
bc7d05177f
movdec: Calculate an average bit rate for fragmented streams, too
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Carl Eugen Hoyos
76c3e76eb3
Allow user to force reading mov alias from absolute path.
...
Based on a work-around by Alex Zhukov.
Fixes ticket #935
13 years ago
Alex Converse
ca65932bbf
mpegts: MP4 SL support
13 years ago
Alex Converse
c530267024
mpegts: MP4 OD support
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
Alex Converse
ad6c7c1b52
mp4: Handle non-trivial ES Descriptors.
13 years ago
Carl Eugen Hoyos
6d721f714e
Fix ff_mov_write_chan() so it can be used by other muxers.
14 years ago
Carl Eugen Hoyos
2c4ad1a37b
Initial caf muxer.
14 years ago
Yusuke Nakamura
5f0bb0baef
mov: Support edit list atom version 1.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Carl Eugen Hoyos
91b782720f
Move channel chunk reading function to isom.c.
...
Move ff_read_chan_chunk() to isom.c and rename it as ff_mov_read_chan().
14 years ago
Kostya Shishkov
2d8591c27e
make containers pass palette change in AVPacket
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
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
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
Baptiste Coudurier
798c6facb7
In ts demuxer, support aac flexmux using extradata in iods, issue #2346
...
Originally committed as revision 25806 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
dc2cabd003
movdec: Split out ff_mov_read_stsd
...
Originally committed as revision 25359 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Francesco Lavra
80b39e1ca6
Move AVCodecTag from riff.h into internal.h.
...
Patch by Francesco Lavra, francescolavra interfree it
Originally committed as revision 23250 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
7221579b0c
mov: Read QuickTime chapters
...
Originally committed as revision 22928 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
1c90d2985d
Always consider the mov language code as 4 bytes fixed size and change the
...
function declaration to reflect this.
Originally committed as revision 21558 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
cb41b2b6e0
remove no more needed MOVAtom.offset field
...
Originally committed as revision 21023 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
adeb907137
Search relative path according to alias record when opening mov reference files.
...
Based on patch by Maksym Veremeyenko, verem at m1stereo dot tv
Originally committed as revision 20539 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Peter Ross
2d423666c0
Make mov LPCM and AAC parsing functions public
...
Originally committed as revision 19878 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
bbe46bc4c2
Remove time_rate, we cannot compute exactly when fragments are
...
used and we cannot determine if fragments are present or not in
streamed mode.
Originally committed as revision 19148 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
171a353159
parse 'stps' atom to set keyframe, partial sync sample for mpeg-2 open gop
...
Originally committed as revision 18813 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
1a11c0aa8a
align and update doxygen
...
Originally committed as revision 18812 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
4b29ed399f
Parse 'cslg' atom to retrieve dts shift when 'ctts' duration is negative.
...
We have now dts <= pts, note that for some B frames dts+1 == pts can happen
if a crappy timebase is used instead of correct /1001.
Originally committed as revision 18810 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
e49da8273b
allocate palette in codec directly
...
Originally committed as revision 17976 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
88c4339bda
Move MOVContext and related structures from mov.c to isom.h. See "[PATCH]
...
move MOVContext from mov.c to isom.h" thread on ML.
Originally committed as revision 17915 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
dce25564cc
'code' is used to index a table so make it unsigned
...
this prevents using negative index and possibly crashing with broken files
Originally committed as revision 16714 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
c3e92a6cb4
remove _t in typedef for POSIX compatibility
...
Originally committed as revision 16063 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago