Martin Storsjö
2bbad1f94c
movenc: Properly free allocated data on failures in mov_write_header
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
3559fb97c4
movenc: Check that tracks->enc exists before trying to free extradata
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
4d122b01e4
movenc: Check for allocation failures in mov_create_chapter_track
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
535d9a9386
avformat/ftp: make const tables static const
...
Reviewed-by: Lukasz M <lukasz.m.luki@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
8d679bc7e6
avformat/mp3dec: improve detection of mp3s with huge id3 tags
...
When a id3 tag is larger than the amount of space we will probe
give it a score similar to what a .mp3 extension would have given it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a9d1a7c79b
avformat: move PROBE_BUF_M* to internal.h
...
They will be used by the mp3 probe function in the next commit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
22fbc7f8be
avformat/tcp: fix pointer to int warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
b89e8759e0
mov: Write tmcd extradata
12 years ago
Luca Barbato
5b41eb91e0
mov: Parse tmcd extradata
12 years ago
Michael Niedermayer
88909beca3
avcodec/movenc: move chapter_properties under the #if of the code that uses it
...
Fixes warning about unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
0b5af5cf12
mov: Refactor multiple stsd skipping in mov_mov_skip_multiple_stsd
12 years ago
Luca Barbato
08504380dd
mov: Refactor codec specific final steps in mov_finalize_stsd_codec
12 years ago
Luca Barbato
dc518a3ae2
mov: Refactor subtitle specific parsing in mov_parse_stsd_subtitle
12 years ago
Luca Barbato
ef196beeb5
mov: Refactor audio specific parsing in mov_parse_stsd_audio
12 years ago
Luca Barbato
a3b53ff062
mov: Refactor video specific parsing in mov_parse_stsd_video
12 years ago
Luca Barbato
bf98562505
mov: Refactor codec id selection in mov_codec_id
12 years ago
Michael Niedermayer
aadfadd784
avformat/redspark: check coef_off
...
Fixes out of array reads
Found-by: Laurent Butti <laurentb@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
0be3be9011
lavf/tee: copy metadata to output chained muxers
12 years ago
John Stebbins
30ce289074
movenc: Make tkhd "enabled" flag QuickTime compatible
...
QuickTime will play multiple audio tracks concurrently if this flag is
set for multiple audio tracks. And if no subtitle track has this flag
set, QuickTime will show no subtitles in the subtitle menu.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
John Stebbins
1f70a5ad28
mov: use tkhd enabled flag to set the default track
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Michael Niedermayer
c443689afb
avformat/movenc: use av_freep() instead of av_free() except for local variables before return
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
7af7b45c38
lavf/image2: extend start_number range to accept zero
...
Address trac ticket #2884 .
12 years ago
Stefano Sabatini
eadb3ad758
lavf/tee: initialize ret in parse_bsfs()
...
Fix spurious failures.
12 years ago
Stefano Sabatini
5ae3563359
lavf/tee: add special select option
12 years ago
Clément Bœsch
60198742ff
movenc: fix detection of 64bit offset requirement
...
The old method doesn't work when moov is relocated to beginning of file
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
John Stebbins
fe5d5a8ffc
movenc: Make chapter track QuickTime compatible
...
QuickTime requires that the stsd.text box be completely filled in.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Clément Bœsch
f8ef91ff3d
movenc: add faststart option for web streaming
...
Faststart moves the moov atom to the beginning of the file and rewrites
the rest of the file after muxing is complete.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
be03912a78
avformat/unix: reshuffle #includes
...
This should fix openbsd while hopefully also working on solaris & android
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
97e165cdae
avformat/unix: include sys/socket.h
...
unbreak android ndk r8 build
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
John Stebbins
6c786765cd
movenc: Allow chapters to be written in trailer
...
This allows creation of frame accurate chapter marks from sources
like DVD and BD where the precise chapter location is not known until
the chapter mark has been reached during reading.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
John Stebbins
db03cb37fd
movenc: Allow chapter track in default MODE_MP4
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
3d64845600
movenc: ilbc needs audio_vbr set.
...
Without this the block_align or bitrate value is not available to the decoder
Fixes Ticket2858
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
64af59bc49
avformat: Fix references to removed av_close_input_file in Doxygen
12 years ago
Luca Barbato
67400f6b62
mov: Prevent segfaults on mov_write_hdlr_tag
...
Do not segfault when writing tracks such as tmcd by writing them down
as generic DataHandlers if not known.
12 years ago
Luca Barbato
22de0f8369
mov: Compute max duration among the tracks with a timescale
...
Prevent an assert.
12 years ago
Luca Barbato
3952303010
mov: Set the timescale for data streams
...
Data streams have a defined timebase, do not ignore it.
12 years ago
Martin Storsjö
b886f5c2f1
mkv: Allow flushing the current cluster in progress
...
Allow emitting the current cluster that is being written before
starting a new one, simplifying how to figure out where clusters
are positioned in the output stream (for live streaming).
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Luca Barbato
59f595921e
mkv: Flush the old cluster before writing a new one
...
This simplifies keeping track of cluster boundaries for e.g.
livestreaming of WebM.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Luca Barbato
98308bd44f
mkv: Add options for specifying cluster limits
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Matthew Heaney
818ebe930f
avformat/matroskadec: add WebVTT support
...
WebM files now support inband text tracks, as described in the
following specification:
http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm
The Matroska demuxer now detects the presence of WebVTT tracks,
synthesizing WebVTT packets (having codec id AV_CODEC_ID_WEBVTT) and
pushing them downstream in the normal way.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
148fbdd1c2
mkv: Refactor mkv_write_packet
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Paul B Mahol
daede1e3fa
matroskaenc: remove unneeded wavpack tag
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Reimar Döffinger
9a27acae9e
ogg: Fix potential infinite discard loop
...
Seeking in certain broken files would cause ogg_read_timestamp
to fail because ogg_packet would go into a state where all packets
of stream 1 would be discarded until the end of the stream.
Bug-Id: 553
CC: libav-stable@libav.org
Signed-off-by: Jan Gerber <j@v2v.cc>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Carl Eugen Hoyos
037af63b33
Fix frame width and height for some targa_y216 samples.
...
Fixes ticket #2864 .
12 years ago
Michael Niedermayer
d73cbc22c5
avformat/mpegts: resync from the smallest packet size on
...
This avoids the loss of a packet in many cases if the packet size was wrong.
It also improves detection of packet size changes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b4429c259a
mpegts_get_pcr: dont loose a packet when resyncing
...
This matches how read_packet() works
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0f2f65bd58
mpegts: fix pos47_full
...
The value was off by a packet
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
ee7f2609a0
avformat/mpegts: print packet size warning only if new size differs from old
...
No case is known to have triggered this, but its more correct to check that the
new size differs.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c666c59ac1
mpegts: reanalyze packet size on mismatches
...
Fixes Ticket1812
Fixes Ticket2838
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
338f8b2eaf
avformat/matroskadec: check out_samplerate before using it in av_rescale()
...
Prevent assertion failure with damaged input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago