Michael Niedermayer and Martin Storsjö
a4fec9a7ea
rtmppkt: Check for packet size mismatches
...
When receiving fragmented packets, the first packet declares the size,
and the later ones normally are small follow-on packets that don't repeat
the size and the other header fields. But technically, the later fragments
also can have a full header, declaring a different size than the previous
packet.
If the follow-on packet declares a larger size than the initial one, we
could end up writing outside of the allocation.
This fixes out of bounds writes.
Found-by: Paul Cher <paulcher@icloud.com >
Reviewed-by: Paul Cher <paulcher@icloud.com >
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-12-15 15:45:59 +02:00
Michael Niedermayer and Luca Barbato
be9dba5c8a
swscale: Properly load alpha for planar rgb
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2016-10-18 12:58:14 +02:00
Michael Niedermayer and Luca Barbato
f59750641a
swscale: x86: Add some forgotten 12-bit planar YUV cases
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-10-12 17:39:30 +02:00
Michael Niedermayer and Luca Barbato
328ea6a9a5
swscale: Add input support for 12-bit formats
...
Implemented for AV_PIX_FMT_GBRP12.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2016-10-12 17:39:30 +02:00
Michael Niedermayer and Luca Barbato
1e93aa69a6
Add GBRP12 pixel format support
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2016-10-12 17:39:30 +02:00
Michael Niedermayer and Vittorio Giovara
136f552075
mpegvideo_motion: Handle edge emulation even without unrestricted_mv
...
Fix out of bounds read.
Bug-Id: 962
Found by: F4B3CD@STARLAB and Agostino Sarubbo
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2016-09-16 16:28:07 +02:00
Michael Niedermayer and Diego Biurrun
e5b019725f
m4vdec: Check for non-startcode 00 00 00 sequences in probe
...
This makes the m4v detection less trigger-happy.
Bug-Id: 949
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-08-03 08:27:02 +02:00
Michael Niedermayer and Martin Storsjö
daec1651f1
movenc: Write ?xyz geotag metadata for mov files
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-05-19 10:46:53 +03:00
Michael Niedermayer and Martin Storsjö
bc43131997
mov: Also export loci altitude
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-05-19 10:46:53 +03:00
Michael Niedermayer and Martin Storsjö
94d8141c8c
mov: Append place name instead of overwriting for loci
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-05-19 10:46:52 +03:00
Michael Niedermayer and Martin Storsjö
f126365cda
mov: Fix parsing short loci
...
Previously, we required the minimum number of bytes required for
the full box. Don't strictly require the astronomical body and additional
notes fields, but do require an altitude field (which currently isn't
parsed). This matches the initial length check at the start of the function
(which doesn't know about the variable length place field).
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-05-19 10:46:51 +03:00
Michael Niedermayer and Martin Storsjö
704d2bd18b
mov: Print reason of loci parsing failure
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-05-19 10:46:45 +03:00
Michael Niedermayer and Martin Storsjö
283226e11c
simple_idct_template: Fix strict aliasing violation
...
This fixes fate-wmv8-intrax8 in certain configurations, e.g.
gcc 4.4.
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-05-10 09:41:07 +03:00
Michael Niedermayer and Anton Khirnov
366ba2dee1
mmaldec: Use av_assert0() instead of assert()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2016-04-30 08:00:02 +02:00
Michael Niedermayer and Martin Storsjö
564b4591bb
opt: Add av_opt_copy()
...
This includes documentation and other modifications by
Lukasz Marek and Martin Storsjö.
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-03-24 10:34:15 +02:00
Michael Niedermayer and Vittorio Giovara
f435d081b0
h264: Add an AVClass pointer to H264Context
...
Sample-Id: asan_heap-uaf_3660f67_757_cov_1257014655_Hi422FR1_SONY_A.jsv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2016-02-22 19:08:56 -05:00
Michael Niedermayer and Vittorio Giovara
5781bfae0c
flacenc: Load default prediction_order parameters if none is selected
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2016-02-08 15:00:29 -05:00
Michael Niedermayer and Martin Storsjö
09f4822e4e
flvdec: perform duration search just once
...
When loading a truncated flv file, it would previously try to do a seek to
the end of every packet read. For some input protocols (such as http), such
repeated seek attempts are cripple the reading performance.
Signed-off-by: Martin Storsjö <martin@martin.st >
2016-01-19 14:24:34 +02:00
Michael Niedermayer and Luca Barbato
0fc61c6ab6
avi: Validate the stream-id for DV as well
...
Avoid false positives while syncing.
Bug-Id: ffmpeg/4086
Bug-Id: 879
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-12-02 23:49:10 +01:00
Michael Niedermayer and Vittorio Giovara
b74b88f30d
g723_1: Handle values at the ends of the table in lsp2lpc()
...
Fixes out of array reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-11-30 10:58:45 -05:00
Michael Niedermayer and Martin Storsjö
5b70fb8fee
movenc-test: Fix integer overflows
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-11-24 20:57:11 +02:00
Michael Niedermayer and Vittorio Giovara
2fb6e1e754
segafilm: Fix current_sample after seeking and avio_seek return type
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-14 03:39:44 +01:00
Michael Niedermayer and Anton Khirnov
1339009c49
vf_showinfo: show timebase & framerate too
...
(cherry picked from ffmpeg commit fdb9399681 )
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-11-09 08:15:23 +01:00
Michael Niedermayer and Anton Khirnov
11f87ca71e
vf_frei0r: also set AVFilterLink.frame_rate
...
(cherry picked from ffmpeg commit 353cf95f94 )
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-11-09 08:09:42 +01:00
Michael Niedermayer and Anton Khirnov
7d12cba95c
vf_framepack: Check and update frame_rate
...
(cherry picked from ffmpeg commit a46a23d30f )
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-11-09 08:09:41 +01:00
Michael Niedermayer and Anton Khirnov
65e73bc60f
vf_interlace: implement frame rate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from ffmpeg commit 227b4458fb )
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-11-09 08:09:41 +01:00
Michael Niedermayer and Anton Khirnov
9df477e03e
yadif: update frame rate
...
(cherry picked from ffmpeg commit 3161958455 )
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-11-09 08:09:41 +01:00
Michael Niedermayer and Vittorio Giovara
cc96018c79
libopenh264enc: Set AVOption data type
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-11-06 21:55:15 +01:00
Michael Niedermayer and Vittorio Giovara
fcc49924db
vdpau: Remove a spurious CONFIG_H263_VDPAU_HWACCEL
...
Fixes libavcodec/vdpau.c:282:5: warning:
"CONFIG_H263_VDPAU_HWACCEL" is not defined [-Wundef]
Removed in d35d0c723e .
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-06 21:55:15 +01:00
Michael Niedermayer and Vittorio Giovara
563e6d8603
segafilm: drop the "song and dance" for cinepak
...
This seems not to do anything any more since a long time, and removing
it avoids using uninitialized memory. Also change the error value
forwarding as done everywhere else.
Partly fixes: msan_uninit-mem_7fb7d24780d0_2744_R03T.CAK
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-11-06 21:55:15 +01:00
Michael Niedermayer and Luca Barbato
6dcd822904
opus: Buffer the samples from the correct offset
...
When not all the opus stream have the same amount of decoded samples
process the least amount and store what is left from the other streams.
Bug-Id: 909
CC: libav-stable@libav.org
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-10-28 16:59:57 +01:00
Michael Niedermayer and Vittorio Giovara
27eeee76b2
mpegvideo_enc: Merge ifs with identical conditions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-25 22:24:13 +01:00
Michael Niedermayer and Vittorio Giovara
f0a88d4d2a
mpegvideo_enc: Factor new_picture unref out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-25 22:23:51 +01:00
Michael Niedermayer and Luca Barbato
e55376a1fd
rtmpproto: Write correct flv packet sizes at the end of packets
...
In one case it was written as zero, one case left it uninitialized,
missed the 11 bytes for the flv header.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-10-14 14:35:33 +02:00
Michael Niedermayer and Vittorio Giovara
db9fd1e9af
fraps: increase vlc nb_bits
...
Sample-Id: fraps_bug_huff.avi
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-09-03 13:55:38 +02:00
Michael Niedermayer and Vittorio Giovara
741d353ab9
huffman: allow specifying nb_bits to ff_huff_build_tree()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-09-03 13:55:38 +02:00
Michael Niedermayer and Vittorio Giovara
26960aa1cd
huffman: increase bits constant
...
Bug-ID: ffmpeg ticket 2593
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-09-03 13:55:38 +02:00
Michael Niedermayer and Vittorio Giovara
5a19bce2ff
huffman: use a named identifer for the bits constant
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-09-03 13:55:38 +02:00
Michael Niedermayer and Vittorio Giovara
87a11db220
dnxhddata: Double frame_size for cid 1260
...
Despite '417792' being reported in the binary decoder, the buffer at
encoding time needs to be bigger to avoid running out of space due to
interlace handling.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-08-31 17:14:08 +02:00
Michael Niedermayer and Martin Storsjö
4d0d55cd62
checkasm: Use LOCAL_ALIGNED
...
Fixes alignment issues and bus errors.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-26 10:36:22 +03:00
Michael Niedermayer and Vittorio Giovara
d08d8b61aa
dds: Fix 32bpp bitmaps decoding
...
Found-By: ami_stuff
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-22 13:35:44 +01:00
Michael Niedermayer and Janne Grunau
cb33f8d0f4
checkasm: Give macro a body to avoid potential unexpected syntax issues
2015-07-18 01:06:44 +02:00
Michael Niedermayer and Vittorio Giovara
4e0819310e
elsdec: Replace EOVERFLOW with INVALIDDATA
...
EOVERFLOW is not available on all platforms.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 16:26:42 +01:00
Michael Niedermayer and Vittorio Giovara
5e87080f2c
h264_weight: Fix SSSE3 biweight code with weights of 128
...
CC: libav-stable@libav.org
Sample-Id: test_bref.mp4
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-12 17:02:48 +01:00
Michael Niedermayer and Martin Storsjö
08d006f5a8
h264: Fix HWACCEL_MAX for D3D11
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-06-01 11:36:30 +03:00
Michael Niedermayer and Martin Storsjö
674b79148f
hevc: Fix HWACCEL_MAX for D3D11
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-06-01 11:36:22 +03:00
Michael Niedermayer and Luca Barbato
e4610300de
x86: cavs: Remove an unneeded scratch buffer
...
Simplifies the code and makes it build on certain compilers
running out of registers on x86.
CC: libav-stable@libav.org
Reported-By: mudler
2015-05-28 18:40:40 +02:00
Michael Niedermayer and Vittorio Giovara
e0010bb91f
mux: Do not leave stale side data pointers in ff_interleave_add_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-05-06 15:01:35 +01:00
Michael Niedermayer and Derek Buitenhuis
31048d48b0
avcodec/libx265: export chosen picture types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2015-04-05 12:32:07 -04:00
Michael Niedermayer and Vittorio Giovara
b21af32aed
lavc: Prefer x264 over openh264 if both libraries are available
2015-03-23 20:53:29 +00:00
Michael Niedermayer and Luca Barbato
0ce3a0f9d9
utvideodec: Handle slice_height being zero
...
Fixes out of array accesses.
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Bug-Id: CVE-2014-9604
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-03-09 00:51:15 +01:00
Michael Niedermayer and Vittorio Giovara
6f7a32839d
svq1enc: correctly handle memory error and allocations
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-02-03 15:23:21 +00:00
Michael Niedermayer and Luca Barbato
61928b68dc
h264: Do not share rbsp_buffer across threads
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
CC: libav-stable@libav.org
2015-01-28 16:28:58 +01:00
Michael Niedermayer and Martin Storsjö
2a06c2a03e
mpegvideo_enc: Draw edges on input for non-multiple of 16 resolutions
...
This improves motion estimation and avoids using uninitialized data
for resolutions that aren't a multiple of 16.
Prior to d2a25c40 , the edges used to be initialized so that encoding
was deterministic, but after that commit it started using uninitialized
data (for non multiple of 16 resolutions).
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-01-23 15:05:49 +02:00
Michael Niedermayer and Martin Storsjö
ea3fc9fe68
smoothstreamingenc: Add a missing "goto fail"
...
This goto wasn't necessary originally, but it should have been
added when the write_manifest call was added in 8e276378 .
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-01-19 22:31:08 +02:00
Michael Niedermayer and Martin Storsjö
def69553e7
h264_cabac: Break infinite loops
...
This fixes out of array reads and/or infinite loops.
30 is the maximum number of bits that can be read into
coeff_abs below.
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-01-15 10:17:01 +02:00
Michael Niedermayer and Anton Khirnov
cee4490b52
on2avc: check number of channels
...
Fixes invalid memory access.
CC: libav-stable@libav.org
Bug-ID: CVE-2014-8549
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-12-19 08:01:47 +01:00
Michael Niedermayer and Anton Khirnov
d423dd72be
smc: fix the bounds check
...
Fixes invalid writes when there are more blocks in a run than total
remaining blocks.
CC: libav-stable@libav.org
Bug-ID: CVE-2014-8548
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-12-19 08:01:47 +01:00
Michael Niedermayer and Anton Khirnov
0b39ac6f54
gifdec: refactor interleave end handling
...
Fixes invalid writes with very small image heights.
CC: libav-stable@libav.org
Bug-ID: CVE-2014-8547
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-12-19 08:01:47 +01:00
Michael Niedermayer and Martin Storsjö
3bb465245f
h261dec: Fix context initialization sequence
...
ff_mpv_common_init sets s->context_initialized.
This fixes decoding of h261 in the cases where the demuxer
hasn't already set the frame size.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-12-18 23:10:24 +02:00
Michael Niedermayer and Luca Barbato
5a82ad644f
svq1dec: Unbreak the scratch buffer allocation
...
The input packets are always assumed to be padded and
the av_fast_ family of function takes a pointer to a pointer.
Thanks to Nicolas Dufresne <nicolas.dufresne@collabora.com > for
a similar patch.
Introduced in 7b588bb691 .
Bug-Id: 766
CC: libav-stable@libav.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2014-12-14 22:03:58 +01:00
Michael Niedermayer and Vittorio Giovara
894545cb71
mpegvideo: exit cleanly when ff_mpv_common_frame_size_change() fails
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2014-12-03 12:52:53 +00:00
Michael Niedermayer and Vittorio Giovara
7a38987f24
mpegvideo: free_context_frame() cannot fail, make it return void
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-03 12:52:04 +00:00
Michael Niedermayer and Vittorio Giovara
c45eeb2dbf
mpegvideo: replace assert about interlaced EC with debug av_log()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-03 12:51:43 +00:00
Michael Niedermayer and Vittorio Giovara
3a56bcee7c
mpeg12dec: Use more specific error codes
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2014-12-03 12:50:52 +00:00
Michael Niedermayer and Vittorio Giovara
b56afb48ae
mpeg12dec: Print error/warning messages on issues in mpeg1_decode_sequence()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-03 12:44:58 +00:00
Michael Niedermayer and Vittorio Giovara
d69d787dad
h264: proper cleanup in ff_h264_alloc_tables() if DPB alloc fails
...
CC: libav-devel@libav.org
2014-12-03 02:51:27 +00:00
Michael Niedermayer and Vittorio Giovara
ca5c3ff909
vf_interlace: x86: improve asm performance
...
4775 decicycles -> 3688 decicycles
2014-11-25 02:00:06 +00:00
Michael Niedermayer and Vittorio Giovara
57ed5a64fe
hnm4: change width/height to int to fix hypothetical integer overflows
...
CC: libav-stable@libav.org
Bug-Id: CID 1135770 / CID 1135771
2014-11-25 02:00:06 +00:00
Michael Niedermayer and Vittorio Giovara
51946d2de8
vc1: Use the correct shift amount
...
`is_intra` is a 6bits bitfield.
CC: libav-stable@libav.org
Bug-Id: CID 1194380 / CID 1194381
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2014-11-25 02:00:06 +00:00
Michael Niedermayer and Vittorio Giovara
62e52b94e6
vorbis_parser: Move vp check to avoid a null pointer dereference
...
CC: libav-stable@libav.org
Bug-Id: CID 1251347
2014-11-25 02:00:06 +00:00
Michael Niedermayer and Vittorio Giovara
c117da9d3e
lpc: remove unneeded {}
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-11-25 02:00:06 +00:00
Michael Niedermayer and Vittorio Giovara
55b59fab88
roqaudio: Always use the frame buffer on flush
...
Prevent NULL dereference.
CC: libav-stable@libav.org
Bug-Id: CID 703669
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2014-11-24 01:30:15 +00:00
Michael Niedermayer and Martin Storsjö
4b68edd08a
flvenc: Remove an unused variable
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-11-22 22:10:52 +02:00
Michael Niedermayer and Vittorio Giovara
2fa6d21124
on2avc: Fix out of array access
...
CC: libav-stable@libav.org
Bug-Id: CID 1206648
2014-11-15 12:50:05 +01:00
Michael Niedermayer and Vittorio Giovara
aa7c429c4e
nellymoserenc: fix array element ordering
...
Fixes assertion failures and valgrind warnings in trellis encoder.
CC: libav-stable@libav.org
Bug-Id: CID 732256 / CID 732257
2014-11-13 01:41:25 +01:00
Michael Niedermayer and Vittorio Giovara
29234f5681
vp7: fix checking vp7_feature_value_size()
...
CC: libav-stable@libav.org
Bug-Id: CID 1197061
2014-11-13 01:41:25 +01:00
Michael Niedermayer and Vittorio Giovara
4cb9f1a774
h264_cabac: fix one fill_rectangle() indentation level
...
Bug-Id: CID 1087088
2014-11-11 11:49:54 +01:00
Michael Niedermayer and Vittorio Giovara
a6defd1f5b
hevc_cabac: decrease CABAC_MAX_BIN
...
Prevents shifts with undefined behavior, as no syntax element has a valid
value greater than 1 << 31.
Bug-Id: CID 1206635
2014-11-11 11:49:54 +01:00
Michael Niedermayer and Vittorio Giovara
7c61e4b1a0
hpeldsp: Increase put_no_rnd_pixels_tab[][] size
...
CC: libav-stable@libav.org
Bug-Id: CID 991852
2014-11-11 11:41:49 +01:00
Michael Niedermayer and Vittorio Giovara
fe27aeaeab
mpeg12enc: increase declared size of block function argument
...
CC: libav-stable@libav.org
Bug-Id: CID 1047236
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2014-11-11 11:26:02 +01:00
Michael Niedermayer and Martin Storsjö
897d5c3a42
lavf: Print a warning if failed to avoid negative timestamps when requested
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-11-07 12:11:46 +02:00
Michael Niedermayer and Martin Storsjö
1384df6419
lavf: Add an option for avoiding negative timestamps
...
This is the same logic as is invoked on AVFMT_TS_NEGATIVE,
but which can be enabled manually, or can be enabled
in muxers which only need it in certain conditions.
Also allow using the same mechanism to force streams to start
at 0.
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-11-07 12:11:35 +02:00
Michael Niedermayer and Vittorio Giovara
930ffd46e1
aacsbr: change order of operation to prevent out of array read
...
CC: libav-stable@libav.org
Bug-Id: CID 732250
2014-11-04 09:28:45 -05:00
Michael Niedermayer and Vittorio Giovara
b3d11437ca
oggenc: remove unneeded null check
...
The code would have segfaulted before if oggstream were NULL.
CC: libav-stable@libav.org
Bug-Id: CID 732218
2014-10-29 16:54:37 +00:00
Michael Niedermayer and Vittorio Giovara
02484d1a93
avio: fix sizeof argument
...
CC: libav-stable@libav.org
Bug-Id: CID 732284
2014-10-20 10:38:38 +01:00
Michael Niedermayer and Martin Storsjö
72f801619a
movenc: Adjust edit lists to trim out parts of tracks with negative pts
...
This makes sure that audio preroll for e.g. AAC is signaled correctly.
Previously we only wrote the edit list correctly if we had negative
dts but started with pts == 0 (e.g. for video with B-frames).
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-10-12 17:45:55 +03:00
Michael Niedermayer and Martin Storsjö
bd239c9a2e
lavf: Don't drop both pts and dts if timestamps are invalid
...
In these cases, only drop dts. Because if we drop both we have no
timestamps at all for some files.
This improves playback of HLS streams from GoPro cameras.
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-10-12 01:32:52 +03:00
Michael Niedermayer and Derek Buitenhuis
d10d1b8655
libx265: enable psnr reporting when requested by the user
...
This is similar to what is done in libx264.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2014-10-01 14:31:48 +01:00
Michael Niedermayer and Vittorio Giovara
2cd7c99498
h264: reset ret to avoid propagating minor failures
...
Unbreak 772d150a6e .
CC: libav-stable@libav.org
Bug-Id: 750 / 905753
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2014-09-29 12:33:55 +01:00
Michael Niedermayer and Tim Walker
a97328afef
vc1: Use logical instead of bitwise or for twomv
...
CC: libav-stable@libav.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Tim Walker <tdskywalker@gmail.com >
2014-09-26 16:55:36 +02:00
Michael Niedermayer and Vittorio Giovara
37c46743ee
avcodec: fix missing doxygen comment marker
2014-09-01 00:52:22 +01:00
Michael Niedermayer and Anton Khirnov
da7d839a0d
ffv1dec: check that global parameters do not change in version 0/1
...
Such changes are neither allowed nor supported
Found-by: ami_stuff
Bug-Id: CVE-2013-7020
CC: libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-08-12 10:21:21 +00:00
Michael Niedermayer and Anton Khirnov
a7153444df
huffyuvdec: check width size for yuv422p
...
Avoid out of array accesses.
CC: libav-stable@libav.org
Bug-Id: CVE-2013-0848
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-08-05 20:01:59 +00:00
Michael Niedermayer and Anton Khirnov
70cd3b8e65
mmvideo: check horizontal coordinate too
...
Fixes out of array accesses.
Bug-Id: CVE-2013-3672
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-08-05 19:16:12 +00:00
Michael Niedermayer and Anton Khirnov
849b9d34c7
wmalosslessdec: fix mclms_coeffs* array size
...
Fixes corruption of context
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
Bug-Id: CVE-2014-2098
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-08-05 14:58:03 +00:00
Michael Niedermayer and Luca Barbato
d98e6c5d5d
pgssubdec: Check RLE size before copying
...
Make sure the buffer size does not exceed the expected
RLE size.
Prevent an out of array bound write.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Bug-Id: CVE-2013-0852
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2014-08-01 02:13:32 +02:00
Michael Niedermayer and Martin Storsjö
a863c97e99
smoothstreamingenc: Fix a memory leak on errors
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-07-07 22:08:42 +03:00
Michael Niedermayer and Martin Storsjö
98569d8963
matroskadec: Fix a double negation typo
...
This typo has existed since this code was added in c16582579 .
Newer versions of clang pointed out that this comparison always
was true (since the result of the negation is either 0 or 1, while
AVDISCARD_ALL has the value 48).
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-07-02 20:15:42 +03:00
Michael Niedermayer and Martin Storsjö
7dba055bb0
oggenc: Fix the EOS flag
...
This corrects the bug that caused the checksums to change in
9767d7c092 .
It caused the EOS flag to be set incorrectly; the ogg spec does not
allow it to be set in the middle of a logical bitstream.
Signed-off-by: Andrew Kelley <superjoe30@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-05-28 21:51:38 +03:00