Michael Niedermayer
fc8cff96ed
avcodec/h264_cavlc: Fix undefined behavior on qscale overflow
...
Fixes: 1214/clusterfuzz-testcase-minimized-6130606599569408
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
4925537004
avcodec/utvideodec: fix gradient prediction when stride does not match width
...
Fixes #6340 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
9ef21a897c
avcodec/utvideodec: fix decoding odd sizes with interlaced video with some formats
...
Fixes #6316 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
James Almer
0f05f2c7e6
avcodec/aac_adtstoasc: fix ASC passthrough on small frames
...
ASC frames smaller than AAC_ADTS_HEADER_SIZE were being discarded.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Carl Eugen Hoyos
b6a8396245
lavc/motion_est: Fix undefined negative left shifts.
8 years ago
Paul B Mahol
61088051bd
avcodec: add Screen Recorder Gold Codec decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
a96db6be06
avcodec: add Mandsoft Screen Capture Codec decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
f6b5a5c7d0
avcodec/dnxhdenc: fix recent regression
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Carl Eugen Hoyos
b9e4bbc686
lavc/opus_pvq: Add missing copyright notices from libopus.
...
The file is based on libopus, analyzed by Rostislav Pehlivanov.
8 years ago
Paul B Mahol
5dedb2afd6
avcodec/dnxhd*: add ff_dnxhd_get_hr_frame_size()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
34c2eea3d8
avcodec/dnxhdenc: make sure that mb_height > 255 can be stored
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Rostislav Pehlivanov
3f1c527bf5
opus_pvq: add resynth support and band encoding cost function
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
James Almer
8cd8c83317
avcodec/aacenc_ltp: fix use of uninitialized values
...
Fixes some valgrind warnings.
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
cd8e62746f
avcodec/tiff: Factor constant computation out of inner loop
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
James Almer
2b4cc8d1bb
avcodec/dnxhddec: fix -Wformat warning raised by DJGPP
...
FF_ARRAY_ELEMS returns a size_t value.
Reviewed-by: ubitux
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Paul B Mahol
da2fd3f73e
avcodec/lcldec: mark output frames as keyframes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
c61dc28911
avcodec/lcldec: add support for frame threads
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
25e491b6f9
avcodec/dnxhddec: add support for very big resolutions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Clément Bœsch
8839cbf911
Revert "avcodec/svq1: zero initialize entries array"
...
This reverts commit aed84ee4d1
.
It is a false positive from Valgrind with recent GCC and
-funswitch-loops (present in -O3).
8 years ago
Michael Niedermayer
c94d551ea7
avcodec/pixlet: Reorder rlen check
...
This changes nothing but is nicer looking as this checks rlen
Maybe this helps coverity remove CID1397743
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
8dd0c12648
avcodec/mjpegenc_huffman: Assert length in ff_mjpegenc_huffman_compute_bits()
...
This should help coverity see that the issues this leads to cannot occur
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Rostislav Pehlivanov
03eb0515c1
mpegvideo_enc: disable optimized huffman coding with AMV or slice threads
...
Doesn't work yet with slice threading and won't work with AMV.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
724bb805ef
Revert "mjpegenc: disable huffman coding with AMV"
...
This was the wrong patch
This reverts commit 7f9b492d54
.
8 years ago
James Almer
4588063f3e
avcodec/hevcdec: remove duplicate extradata parsing function
...
Use ff_hevc_decode_extradata() instead, which correctly only tries
to decode parameter set NAL units and not any other NAL that may be
present in extradata.
Reviewed-by: nevcairiel
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
498e9e8e2a
avcodec/hevc_parse: split build dependencies
...
Reviewed-by: nevcairiel
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
f1533979a2
avcodec/hevc_parse: allow setting apply_defdispwin when decoding SPS NAL units
...
Reviewed-by: nevcairiel
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
159ab4625b
avcodec/hevc_parse: check for parameter set decoding failure
...
Reviewed-by: nevcairiel
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
aed84ee4d1
avcodec/svq1: zero initialize entries array
...
Fixes valgrind warnings about "Use of uninitialised value of size 8"
Reviewed-by: Kieran Kunhya <kierank@obe.tv>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Paul B Mahol
20f7872d99
avcodec/hqx: add support for frame threads
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
24d9b0c29c
avcodec/cllc: add support for frame threads
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Michael Niedermayer
9244b839b7
avcodec/dcadsp: Fix runtime error: signed integer overflow
...
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Rostislav Pehlivanov
45eeb1f785
mjpegenc: enable optimal huffman coding by default
...
As it gives excellent encoding gains at an insignificant speed increase
and passes fate without problems, it should now be safe to enable by
default.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
7f9b492d54
mjpegenc: disable huffman coding with AMV
...
Isn't supported.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
2c9be3882a
mjpegenc_common: check for codec ID before using avctx->priv_data
...
When coding lossless jpeg the priv context will be pointing to LJpegEncContext
rather than MpegEncContext, which the function expects.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
d0a3143193
opusenc: switch between intra/inter mode for coarse energy
...
Saves around 5kbps.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
c39fba703b
opusenc: do not signal digital silence
...
Apparently its only use is to enable comfort noise/error recovery.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
42ffc67208
opusenc: minor style changes
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
63744d8afd
opusenc: remove unused header entries and simplify normalization
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
a66121d964
opus_rc: add macros for checkpoint rollback
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
6d0b62a12b
opus_celt: fix some style issues
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Rostislav Pehlivanov
db788de8ec
mdct15: use existing complex multiplication macros
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
James Almer
e7fb6bc32d
avcodec/hevc_parse: ignore all non parameter set NAL units in extradata
...
While they shouldn't be present, they are harmless if they are.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Paul B Mahol
faa94a576f
avcodec/utvideodec: add support for gradient prediction
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Ronald S. Bultje
2e664b9c1e
pthread_frame: make accesses to debug field be protected by owner lock.
...
The av_log() is done outside the lock, but this way the accesses to the
field (reads and writes) are always protected by a mutex. The av_log()
is not run inside the lock context because it may involve user callbacks
and doing that in performance-sensitive code is probably not a good idea.
This should fix occasional tsan warnings when running fate-h264, like:
WARNING: ThreadSanitizer: data race (pid=10916)
Write of size 4 at 0x7d64000174fc by main thread (mutexes: write M2313):
#0 update_context_from_user src/libavcodec/pthread_frame.c:335 (ffmpeg+0x000000df7b06)
[..]
Previous read of size 4 at 0x7d64000174fc by thread T1 (mutexes: write M2311):
#0 ff_thread_await_progress src/libavcodec/pthread_frame.c:592 (ffmpeg+0x000000df8b3e)
8 years ago
Ronald S. Bultje
7f05c5cea0
h264: don't re-call ff_h264_direct_ref_list_init() w/ frame-mt.
...
I'm hoping that this will address the remaining tsan fate-h264 issues:
WARNING: ThreadSanitizer: data race (pid=24478)
Read of size 8 at 0x7dbc0001c828 by main thread (mutexes: write M3243):
#0 ff_h264_ref_picture src/libavcodec/h264_picture.c:107 (ffmpeg+0x0000013b78d8)
[..]
Previous write of size 1 at 0x7dbc0001c82e by thread T2 (mutexes: write M3245):
#0 ff_h264_direct_ref_list_init src/libavcodec/h264_direct.c:137 (ffmpeg+0x000001382c93)
But I'm not sure because I haven't been able to reproduce locally.
8 years ago
Clément Bœsch
8d94d9798a
lavc/mjpegdec: allow failure while decoding APP
...
Fix decoding frame.jpg from ticket #267
Regression since 9c7ee3749
/ 212c6a1d7
8 years ago
James Almer
7c1566fec3
avcodec/tta: Don't try to read more than MIN_CACHE_BITS bits
...
This fixes assertion failures introduced in 4fbb56acbe
.
Reviewed-by: michaelni
Reviewed-by: durandal_1707
8 years ago
Michael Niedermayer
08117a4015
avcodec/h264: Check weight values to be within the specs limits.
...
Fixes: integer overflows
Fixes: 911/clusterfuzz-testcase-5415105606975488
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Diego Biurrun
b0f67d03c5
ac3enc: Avoid unnecessary macro indirections
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
61ee2ca775
avcodec/dvdsubdec: Fixes 2 runtime error: left shift of 170 by 24 places cannot be represented in type 'int'
...
Fixes: 619/clusterfuzz-testcase-5803914534322176
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago