Michael Niedermayer
cd05c4060a
avformat/mpegenc: minor simplification / use AV_WB16()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
32cde96296
avformat/mpegenc: Better heuristic for ordering packets
...
This prevents underflows in quite constrained cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
930406325c
avformat/mpegenc: Better default for max_delay
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b637118086
avformat/mpegenc: change assert to av_assert0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
ddd0e23d58
avformat/mpegenc: improve field names in underflow error message
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
668643b923
matroskadec: check av_strdup() when setting defaults
12 years ago
Michael Niedermayer
fb45de779c
avformat/omadec: simplify checks in nprobe()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
b6c7bd53f4
movenchint: Clear size and len if the realloc failed
...
Previously these were left in an inconsistent state.
Pointed out by Michael Niedermayer.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
f2b00a5372
movenc: Return a proper error code for invalid combinations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
f7e616959a
electronicarts: Check packet sizes before reading
...
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
ce67f442be
lavf: Avoid setting avg_frame_rate if delta_dts is negative
...
This avoids setting avg_frame_rate to invalid (negative)
values.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
a5cbf1991c
avformat/mov: reset extradata size when extradata gets deallocated due to realloc failure
...
This prevents the fields from becoming inconsistent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
f1eac2b8a0
movenc: Use keyframes as default fragmentation point in ismv
...
Fragmenting blindly to a certain duration isn't a good choice
if one should be able to switch between different qualities,
therefore default to keyframes instead.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
a9553bbb33
movenc: Set all implicit flags immediately in mov_write_header
...
This makes sure other sanity checks for conflicting options
can work properly, e.g. for the conflict between the faststart
flag when using the ismv mode.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
187023f6b2
movenc: Set mov->mode earlier in mov_write_header
...
This allows simplifying some early checks that depend on the
muxer mode.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
5055035670
tls: Do not abort on non-fatal TLS alerts with gnutls
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
05b7a635dc
avformat/movenchint: use realloc_array() to protect against integer overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
63621762ec
avformat/movenchint: only change queue size if reallocation succeeded
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
091ba02cc8
avformat/movenchint: revert "Use av_reallocp() where suitable"
...
reverts movenchin part of 5626f994f2
The change left the fields in an inconsistent state
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
c951e4b442
flv: Make onTextData parsing robust
...
Certain streaming servers do not preserve the order of the fields.
12 years ago
Luca Barbato
ba77757a7e
rtmp: Replace a magic number with a macro
...
11 is the RTMP header size.
12 years ago
Luca Barbato
5840473890
rtmp: Rewrite embedded flv handling
...
Use update_offset() as done for rtmp audio, video and notifications and
read update and write the fields instead of replacing them in the rtmp
packet and then memcpying it to the output buffer.
12 years ago
Luca Barbato
e40a0e8228
rtmp: Refactor get_packet
12 years ago
Luca Barbato
32a414f316
rtmp: Support AMF_DATA_TYPE_MIXEDARRAY
...
And fix the AMF_DATA_TYPE_ARRAY parsing while at it.
A MIXEDARRAY type, as the ARRAY, store the number of elements in
an uint32 before the list. The ARRAY is strict and does not have
an OBJECT terminator, MIXEDARRAY behaves like an OBJECT type and
a different than stated number of element can be present.
12 years ago
Michael Niedermayer
21a2b97365
avformat/hls: do not limit manifest lines to 1024 chars
...
Fixes Ticket2976
Debuged-by: jaimeMF
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b8a954e46d
avformat/network: fix duplicate include
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
49515cb840
avformat: remove duplicate includes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
56f17407bc
matroska: Add the CueDuration element
...
Use it only on subtitle CuePoints.
With proper demuxer/splitter support this should improve the display
of subtitles right after seeking to a given point in the stream.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Lukasz Marek
5b153f8164
lavf: add SFTP protocol via libssh
...
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
15672e832f
avformat/utils: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
fcd64dcc37
avformat/avienc: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
39442b1a1b
matroskaenc: Add CuePoints for subtitle tracks
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Vittorio Giovara
944c338430
h264dec: Add .avc file name extension
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Vittorio Giovara
01f111bdb2
h264dec: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Luca Barbato
5532ee6d7d
rtmp: Unbreak get_packet
...
Commit 5626f994f2
broke it.
12 years ago
Martin Storsjö
b97b1adb3f
rtmpproto: Add a comment explaining the logic in handle_notify
...
This explains why the cleanup in 5626f994f
was wrong and why
ae0f316a
was needed.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Monty Montgomery
f6622f9610
avformat/matroskadec: correct spurious keyframe warnings in webm
...
Minor change to fix for Trac #1003 to avoid squawking about files
with valid keyframes that aren't marked (as opposed to frames that are
marked as keyframes and aren't).
Change correctly surpresses the spurious warnings, while still complaining
about (and handling) the genuinely broken file attached to bug #1003 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
3e2a5b33f0
avformat/matroskadec: use av_malloc_array() and check for allocation error
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
63139f62f3
avformat/bmv: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
d8798276b6
r3d: Add more input value validation
...
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
3ca14aa596
rl2: Avoid a division by zero
...
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
83c285f880
wtv: Add more sanity checks for a length read from the file
...
Also make sure the existing length check can't overflow.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
d8b6866014
yop: Clear all references to the AVBuffer in the local AVPacket
...
This makes sure that it doesn't try to free an AVBuffer belonging
to an earlier packet when we free the local packet at the end.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
82e266c6d3
segafilm: Validate the number of audio channels
...
This avoids divisions by zero later.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
72fe16a13e
movenc: Use null buffers for measuring the amount of data to be written
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
3627ce2f1d
aviobuf: Add functions for null buffers
...
Null buffers are useful for simulating writing to a real buffer
for the sake of measuring how many bytes are written.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Vladimir Pantelic
bb461370e3
asfenc: mux chapters in ASF files using an ASF "marker" section
...
ASF markers only have a start time, so we lose the chapter end times,
but that is ASF for you
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Vladimir Pantelic
09f3c937ed
asfenc: remember send time and offset of the index entries
...
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Vladimir Pantelic
1eb9328030
asfenc: add ASF_Reserved_4 as defined in section 10.10 of the ASF spec
...
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Vladimir Pantelic
c53b5dda35
asfdec: replace magic constant with DATA_HEADER_SIZE
...
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago