Michael Niedermayer
e371f031b9
avcodec/pngdec: Fix off by 1 size in decode_zbuf()
...
Fixes out of array access
Fixes: 444/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_PNG_fuzzer
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-23 01:43:35 +01:00
Michael Niedermayer
a0341b4d74
avcodec/error_resilience: update indention after last commit
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-22 21:43:06 +01:00
Michael Niedermayer
d9d9fd9446
avcodec/error_resilience: Optimize motion recovery code by using blcok lists
...
This makes the code 7 times faster with the testcase from libfuzzer
and should reduce the amount of timeouts we hit in automated fuzzing.
(for example 438/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_RV40_fuzzer)
The code is also faster with more realistic input though the difference
is small here as that is far from the worst cases the fuzzers pick out
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-22 21:39:43 +01:00
Jonathan Campbell
d5d474aea5
avcodec/ac3dec: add consistent noise generation option.
...
use av_lfg_init_from_data() to seed AC-3 dithering from the AC-3 frame
data to make it consistent given the same AC-3 frame, if option is set.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-22 02:29:16 +01:00
Mark Thompson
d40a1ae7ec
vaapi_mpeg4: Restore changes overwritten by merge
...
From 2aa8e33d7d .
2017-01-22 00:07:47 +00:00
Paul B Mahol
d60f090dd1
avcodec/fraps: add support for PAL8
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-21 18:08:08 +01:00
Michael Niedermayer
cde007dcd3
avcodec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM to most h263 based codecs
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-21 02:30:38 +01:00
Matthieu Bouron
cf3affabb4
lavc/h264dec: re-indent after previous commit
2017-01-20 17:29:09 +01:00
Matthieu Bouron
639e262971
lavc/h264dec: make sure a slice is decoded before finishing setup
...
Fixes regression in fate-h264-attachment-631 with THREADS=8 introduced
by bdbbb8f11e .
2017-01-20 17:28:40 +01:00
Paul B Mahol
18cfcc6458
avcodec/wmaprodec: add xma_flush for seeking in XMA2
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-20 13:58:41 +01:00
Paul B Mahol
5d2609929d
avcodec: add XMA2 parser
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-20 13:58:41 +01:00
Paul B Mahol
96fe4432f5
avcodec/wmaprodec: unbreak XMA mono decoding
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-20 13:58:36 +01:00
bnnm
cab0f3abc5
avcodec/atrac3: allow 6 channels (non-joint stereo)
...
Raises max channels to 6 (for non joint-stereo only),
there is no difference decoding 1 or N discrete channels.
Fixes trac issue #5840
Signed-off-by: bnnm <bananaman255@gmail.com>
2017-01-20 12:53:57 +01:00
Daniil Cherednik
9a619bef54
dcaenc: Use Huffman codes for Bit Allocation Index
...
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2017-01-20 10:03:46 +00:00
Timo Rothenpieler
6b0a3ee6f8
avcodec/nvenc: add logging for more error cases
2017-01-20 10:29:36 +01:00
Timo Rothenpieler
5403d90f32
avcodec/nvenc: make gpu indices independend of supported capabilities
2017-01-20 10:29:36 +01:00
Paul B Mahol
8a1759ad46
avcodec/exr: export writer info into frame metadata
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 21:06:34 +01:00
Paul B Mahol
546e29d1f5
avcodec/exr: make it aware of 2 additional compressions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 21:06:34 +01:00
Aleksandr Slobodeniuk
545511f57a
avcodec/avcodec: fix lil typo in comment
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-19 20:21:36 +01:00
Michael Niedermayer
1df3d636d4
avcodec/speedhq: Fix warning about "initialization from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-19 19:49:55 +01:00
Paul B Mahol
45f4bf94af
avcodec/wmaprodec: check number of channels for XMA streams
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 15:42:47 +01:00
Paul B Mahol
0fe50e56e9
avcodec/pixlet: use av_clip_uintp2_c explicitly
...
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 13:32:21 +01:00
Paul B Mahol
a340987e37
avcodec/pixlet: use av_clip_uintp2()
...
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 13:19:10 +01:00
Paul B Mahol
be46eb7101
avcodec/pixlet: clip chroma before shifting
...
Fixes artifacts.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 12:49:41 +01:00
Paul B Mahol
1daa08bd96
avcodec/wmapro: redone stream selection for XMA1/2
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 12:33:14 +01:00
Clément Bœsch
e5ac554ba7
lavc/h264: simplify find_unused_picture()
2017-01-19 10:34:10 +01:00
Anton Khirnov
b4a911c189
mpegvideoenc: make a table const
2017-01-19 09:52:21 +01:00
Anton Khirnov
296eff4d9d
zmbvenc: get rid of a global table
2017-01-19 09:52:10 +01:00
Derek Buitenhuis
00b775dda2
hevc: Mark as having threadsafe init
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2017-01-19 09:51:15 +01:00
Paul B Mahol
6c43f33ac2
avcodec/wmaprodec: >2 channel support for XMA
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-19 00:37:26 +01:00
Clément Bœsch
c3050fcbdc
lavc/h264dec: remove flush goto in decode callback
2017-01-18 18:06:21 +01:00
Mark Thompson
2a4a8653b6
lavc: Remove old vaapi decode infrastructure
...
Deprecates struct vaapi_context and the installed header vaapi.h,
to be removed at the next version bump.
(cherry picked from commit 851960f6f8 )
2017-01-17 23:06:46 +00:00
Mark Thompson
defbb8bc26
vaapi_vp9: Convert to use the new VAAPI hwaccel code
2017-01-17 23:06:46 +00:00
Anton Khirnov
adb54e59c1
vaapi_hevc: Convert to use the new VAAPI hwaccel code
...
(cherry picked from commit ea8b730d8e )
Signed-off-by: Mark Thompson <sw@jkqxz.net>
2017-01-17 23:06:46 +00:00
Mark Thompson
fd1a6a0106
vaapi_mpeg4: Convert to use the new VAAPI hwaccel code
...
(cherry picked from commit ccd0316f7c )
2017-01-17 23:06:46 +00:00
Mark Thompson
32b3812b60
vaapi_vc1: Convert to use the new VAAPI hwaccel code
...
(cherry picked from commit 520fb77285 )
2017-01-17 23:06:46 +00:00
Mark Thompson
71acbea112
vaapi_mpeg2: Convert to use the new VAAPI hwaccel code
...
(cherry picked from commit 102e13c353 )
2017-01-17 23:06:45 +00:00
Mark Thompson
c8b26d5954
vaapi_h264: Convert to use the new VAAPI hwaccel code
...
(cherry picked from commit 2fe93244ab )
2017-01-17 23:06:45 +00:00
Mark Thompson
79307ae563
lavc: Rewrite VAAPI decode infrastructure
...
Moves much of the setup logic for VAAPI decoding into lavc; the user
now need only provide the hw_frames_ctx.
(cherry picked from commit 123ccd07c5 )
(cherry picked from commit 5e879b54a3 )
(cherry picked from commit 0aec37e625 )
(cherry picked from commit cfa4eb4fba )
2017-01-17 23:06:45 +00:00
Mark Thompson
d07d01bcce
vaapi_vc1: Remove redundant version check
...
The lowest supported VAAPI version is 0.34 (checked at configure
time), so this test is no longer needed.
(cherry picked from commit 5a667322f5 )
2017-01-17 23:06:45 +00:00
Mark Thompson
845c2c140b
vaapi_vc1: Constify pointers
...
(cherry picked from commit 01d6f84f49 )
2017-01-17 23:06:45 +00:00
Mark Thompson
6bc2808c41
vaapi_mpeg2: Constify pointers
...
(cherry picked from commit ee9061293e )
2017-01-17 23:06:45 +00:00
Mark Thompson
d0897da924
vaapi_h264: Constify pointers
...
(cherry picked from commit 03adfe9130 )
2017-01-17 23:06:45 +00:00
Matthieu Bouron
bdbbb8f11e
Merge commit ' f450cc7bc5'
...
* commit 'f450cc7bc5 ':
h264: eliminate decode_postinit()
Also includes fixes from 1f7b4f9abc and e344e65109 .
Original patch replace H264Context.next_output_pic (H264Picture *) by
H264Context.output_frame (AVFrame *). This change is discarded as it
is incompatible with the frame reconstruction and motion vectors
display code which needs the extra information from the H264Picture.
Merged-by: Clément Bœsch <u@pkh.me>
Merged-by: Matthieu Bouron <matthieu.bouron@gmail.com>
2017-01-17 14:38:48 +01:00
Alexandra Hájková
54dcd22885
als: Convert to the new bitstream reader
2017-01-17 09:52:11 +01:00
Luca Barbato
fb59f87ce7
nvenc: Explicitly push the cuda context on encoding
...
Make sure that NVENC does not misbehave if other cuda usages happen
in the application.
2017-01-17 07:37:12 +01:00
Clément Bœsch
9561de4183
lavc/h264dec: reconstruct and debug flush frames as well
2017-01-16 10:43:41 +01:00
Clément Bœsch
bd520e8569
lavc/h264_slice: drop redundant current_slice reset
...
It is done unconditionally in ff_h264_field_end()
2017-01-16 10:43:41 +01:00
Clément Bœsch
a91c265f39
lavc/pthread_frame: protect read state access in setup finish function
2017-01-16 10:43:41 +01:00
Paul B Mahol
40cf943714
avcodec: add SIPR parser
...
Fixes #2056 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-01-16 10:24:01 +01:00