Moritz Bunkus
bc3b422029
matroskadec: Implement support for ALAC
...
This patch implements support reading ALAC from Matroska files. The
only non-trivial thing about it is that only the ALAC magic cookie is
stored in Matroska's CodecPrivate element but not the "atom size",
"tag" and "tag version" fields that FFMPEG's ALAC decoder
expects. However, those are trivial to re-create.
Sample files are available:
http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska.mka
and the CoreAudio file it was created from with today's mkvmerge:
http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska-source.caf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Philip Langdale
3eb56e8434
movenc: Fix unfreed memory found by valgrind.
...
Signed-off-by: Philip Langdale <philipl@overt.org>
13 years ago
Stefano Sabatini
9bece76009
lavf/img2dec: add start_number_range option
13 years ago
Michael Niedermayer
9e1c55cfde
oggdec: check stream index before using it in ogg_get_length()
...
Fixes crash based on a uninitialized array index read.
If the read does not crash then out of array writes based
on the same index might have been triggered afterwards.
Found-by: inferno@chromium.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
b0d23ae208
lavf/img2doc: document options
13 years ago
Stefano Sabatini
b5c7318bd7
lavf/img2dec: improve error logging in case of find_image_range() failure
13 years ago
Stefano Sabatini
2dfee8abf1
lavf/img2dec: sort options by name
13 years ago
Stefano Sabatini
48c1d1d3fa
lavf/img2dec: introduce and use FIRST_INDEX_SEARCH_RANGE macro in find_image_range
13 years ago
Stefano Sabatini
07ef7b1a30
lavf/img2dec: fix out-of-range check in find_image_range()
...
Take the new parameter start_index into account.
13 years ago
Stefano Sabatini
59e4e40673
lavf/img2dec: doxygen find_image_range() function
13 years ago
Stefano Sabatini
e408e329d2
lavf/img2dec: rename find_image_range() "max_start" parameter to "start_index"
...
The new name seems more consistent with the assumed logic.
"start_index" represents the minimum accepted value as first index, and
not the maximum value as implicitely assumed by the previous name.
13 years ago
Stefano Sabatini
a30e776ff1
lavf/img2dec: fix weird start_number count logic
...
This seems consistent with the assumed meaning of the option.
13 years ago
Philip Langdale
7b24be557f
avformat/srtdec: Write duration into packet from srt demuxer.
...
The current demuxer does not bother to write packet durations,
which makes it impossible to remux into a new format.
Signed-off-by: Philip Langdale <philipl@overt.org>
13 years ago
Philip Langdale
18175ca9b2
movenc: Handle need for extra packets to express subtitle duration.
...
As packet duration is not stored inherently in MPEG4 containers,
subtitles have their duration expressed by storing an additional
empty packet with a pts matching the desired end time of the real
subtitle. Additionally, it is generally expected that all streams
start at time = 0, so an empty packet needs to be inserted at the
beginning of the stream, before the first real subtitle.
Unfortunately, ffmpeg lacks a proper way to express that a subtitle
might map to multiple packets, so the muxer is the only place we
can handle this.
Signed-off-by: Philip Langdale <philipl@overt.org>
13 years ago
Michael Niedermayer
759901f817
mpegdemux: support MLP/AOB
...
Fixes issue1731
Based-on-patch-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ce7cf600be
mpegdemux: move private stream 1 handling out of mpegps_read_pes_header
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
afa6afcc9f
mpegdemux: remove redundant dvd audio code
...
This is almost a revert of: (the file from the report still works)
commit 80e58c6153
Author: Benoit Fouet <benoit.fouet@free.fr>
Date: Wed Feb 11 11:09:36 2009 +0000
Allow demuxing of audio substreams stored as 0x06 type.
Fixes issue 725: MPEG2 PS with PCM audio.
On behalf of Jai.
Originally committed as revision 17150 to svn://svn.ffmpeg.org/ffmpeg/trunk
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3e1cf49676
compute_pkt_fields: do not attempt to calculate dts when the delay hasnt been estimated.
...
Fixes ticket1242
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2107009e7d
lavf: move nb_decoded_frames out of info.
...
This way the variable is available outside find_stream_info
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b288b4c63f
has_decode_delay_been_guessed: adjust value for has_b_frames=0
...
needed for a mkv file
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c91ca5b95d
lavf: move has_decode_delay_been_guessed() up to make it accessible to earlier functions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
668c873bed
matroskadec: check element size against stream limit in ebml_parse_elem()
...
Fixes Ticket1195
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
d84dd35f8e
paf: fix audio packet duration
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
231ffb9243
flvdec: follow packets backward until a valid last timestamp is found
...
Fixed Ticket981
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
71a5cd7dbc
flvdec: perform duration search just once
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
bc42682749
lavf/movenc: fix invalid free with timecode meta and tmcd data copy.
...
Fixes ticket 1577.
13 years ago
Michael Niedermayer
31d8261cde
mpegprobe: fix misdetection of mp3
...
Fixes tikcet1524
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Rønne Petersen
150adea6da
rtmppkt: Add missing libavcodec/bytestream.h include.
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Kifayat ullah
32aeba1275
mpegtsenc: Fix AC3 Sound issue with Blu-ray Players.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
93d428953c
assdec: return EOF instead of EIO.
13 years ago
Jordi Ortiz
50468f93e3
rtmp: add functions for reading AMF values
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Derek Buitenhuis
45eaac02cb
Canopus Lossless decoder
...
At the moment it only does BGR24, but I plan to add the rest after.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Derek Buitenhuis
91c86d3cf8
Canopus Lossless decoder
...
At the moment it only does BGR24, but I plan to add the rest after.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Nicolas George
ff2955a4f7
apetag: return value when required.
...
Should fix compilation on clang.
13 years ago
Diego Biurrun
19cf7163c1
dca: Switch dca_sample_rates to avpriv_ prefix; it is used across libs
13 years ago
Carl Eugen Hoyos
d1ebb25ac6
Skip chan tag padding.
...
Fixes ticket #1580
13 years ago
Paul B Mahol
c36bad3b89
xvma: remove unused variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Diego Biurrun
9e4bca16f8
dca: Move tables used outside of dcadec.c to a separate file.
13 years ago
Anton Khirnov
921063877e
apetag: change a forgotten return to return 0
13 years ago
Anton Khirnov
f2ed006c90
mpc8: return more meaningful error codes.
13 years ago
Anton Khirnov
263dbe9d95
mpc: return more meaningful error codes.
13 years ago
Anton Khirnov
782e64fbe1
wv,mpc8: don't return apetag data in packets.
13 years ago
Samuel Pitoiset
9c9c21eaa1
rtmp: do not warn about receiving metadata packets
...
They are managed in get_packet()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Michael Niedermayer
00ddf62078
mpegdemux: Fix probing of unrecognized_mpeg_video.mpg
...
Fixes Ticket1586
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
0177b7d23a
Improve descriptiveness of a number of codec and container long names
13 years ago
Diego Biurrun
6774247a9d
avformat: Drop pointless "format" from container long names
13 years ago
Paul B Mahol
8a6d673eff
flacdec: fix memleaks
...
While here refactor code.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
jamal
938e4470ae
options: Fix warning about incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
29d70274ec
wv: K&R formatting cosmetics
13 years ago
Luca Barbato
41f43202cf
flvdec: remove spurious use of stream id
...
We match streams by codec id now.
13 years ago