Paul B Mahol
4b1b47e81b
avcodec/scpr: stop checking for overread twice
2018-09-09 14:06:57 +02:00
Shiyou Yin
5161f7bcfd
avutil/mips: [loongson] simplify macro TRANSPOSE_4H and TRANSPOSE_8B
...
Simplify macro TRANSPOSE_4H in mmiutils.h and add TRANSPOSE_8B as a common macro.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-09 12:01:07 +02:00
gxw
090647da84
avcodec/mips: [loongson] optimize vp8 decoding in vp8dsp.
...
Optimize vp8 loop filter with mmi, four functions optimized:
1. ff_vp8_h_loop_filter8uv_mmi.
2. ff_vp8_v_loop_filter8uv_mmi.
3. ff_vp8_h_loop_filter16_mmi.
4. ff_vp8_v_loop_filter16_mmi.
Vp8 decoding speed improved about 50%(from 73fps to 110fps, Tested on loongson 3A3000).
Signed-off-by: Shiyou Yin <yinshiyou-hf@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-09 12:01:07 +02:00
Moritz Barsnick
1693a68187
avcodec/aacenc: report channel layout by name
...
Possibly useful in the error case.
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-09 12:01:07 +02:00
Paul B Mahol
05df39cf3f
avcodec/tiff: check ff_lzw_decode_open() for failure
2018-09-09 11:38:33 +02:00
Paul B Mahol
39cfb722ee
avcodec/gifdec: set .caps_internal
2018-09-09 11:35:14 +02:00
Paul B Mahol
158043bae8
avcodec/gifdec: check ff_lzw_decode_open() for failure
2018-09-09 11:33:17 +02:00
Paul B Mahol
6e15495bcb
avcodec/zmbv: decoder supports init_cleanup capability
2018-09-08 21:31:32 +02:00
Paul B Mahol
337b9e190b
avcodec/ulti: fix minor style issue
2018-09-08 21:21:50 +02:00
Paul B Mahol
51a087771b
avcodec/tscc: decoder supports init_cleanup capability
2018-09-08 21:18:47 +02:00
Paul B Mahol
86e7e7816b
avcodec/tscc: check av_frame_alloc() for failure
2018-09-08 21:17:26 +02:00
Paul B Mahol
1e09dd96fe
avcodec/on2avc: decoder supports init_cleanup capability
2018-09-08 21:01:28 +02:00
Paul B Mahol
e8b27b82d0
avcodec/mscc: decoders supports init_cleanup capability
2018-09-08 20:55:59 +02:00
Paul B Mahol
0d37823c83
avcodec/interplayacm: decoder supports init_cleanup capability
2018-09-08 20:44:22 +02:00
Paul B Mahol
1f71f0a312
avcodec/fmvc: use correct pixel format on big-endian for 16 bpp
2018-09-08 20:33:15 +02:00
Paul B Mahol
15a5f49c0b
avcodec/flashsv: check return value of flashsv_decode_init()
2018-09-08 20:29:34 +02:00
Paul B Mahol
ae227fa1f2
avcodec/fic: change class name to more correct one
2018-09-08 20:25:47 +02:00
Paul B Mahol
ea6f61025e
avcodec/dsicinvideo: decoder supports init_cleanup capability
2018-09-08 20:14:58 +02:00
Paul B Mahol
94437e4409
avcodecc/cscd: fix some obvious style issues
2018-09-08 20:09:27 +02:00
Paul B Mahol
aa76bdea1f
avcodec/cscd: decoder supports init_cleanup capability
2018-09-08 20:06:19 +02:00
Paul B Mahol
aaa3f115d8
avcodec/cook: decoder supports init_cleanup capability
2018-09-08 20:02:41 +02:00
Paul B Mahol
068412f2e8
avcodec/rscc: fix decoding of some iscc files
2018-09-08 17:27:40 +02:00
Paul B Mahol
a5278b672a
avcodec: add RemotelyAnywhere Screen Capture decoder
2018-09-08 15:59:10 +02:00
Paul B Mahol
af71a3ff3e
avcodec/wcmv: fix output on big-endian with rgb565 format
2018-09-08 15:51:00 +02:00
Paul B Mahol
d8ad8fd8bd
avcodec/qdmc: check return code of ff_fft_init()
2018-09-08 15:43:46 +02:00
Zhao Zhili
037b3bd14a
avcodec/h264dec: remove unnecessary checks in h264_decode_frame
...
These conditions are checked again in is_extra(). This patch makes no
functional changes.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-07 20:35:54 +02:00
Zhao Zhili
b9d1f5bf68
avcodec/h264dec: check number of SPS in is_extra
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-07 20:35:54 +02:00
Shiyou Yin
9f60c58586
avcodec/mips: [loongson] fix improper use of register constraints.
...
Constraint "g" means compiler can store variable in memory or register.
When we use constraint "g" for a variable and this variable was operated by
instruction which only support register operands may lead "invalid operands" error.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-07 20:35:54 +02:00
Paul B Mahol
cc24665f44
avcodec/scpr: make sure count and min are valid
2018-09-07 15:09:40 +02:00
Paul B Mahol
a77c2df5cc
avcodec/dnxhdenc: interlaced is not supported in DNxHR
...
Fixes #7263 .
2018-09-06 13:47:48 +02:00
Paul B Mahol
237bbf6678
avcodec/dnxhddec: ask for samples with alpha
2018-09-06 13:47:48 +02:00
Shiyou Yin
776909e42e
avcodec/mips: [loongson] reoptimize put and add pixels clamped functions.
...
Simplify the usage of intermediate variable addr and remove unused variable all64
in following functions:
1. ff_put_pixels_clamped_mmi
2. ff_put_signed_pixels_clamped_mmi
3. ff_add_pixels_clamped_mmi
This optimization speed up mpeg4 decode about 2% on loongson platform(tested with 3A3000).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-05 21:45:52 +02:00
Shiyou Yin
17c635e605
avcodec/mips: [loongson] simplify the usage of intermediate variable addr.
...
Simplify the usage of intermediate variable addr in following functions:
1. ff_put_pixels4_8_mmi
2. ff_put_pixels8_8_mmi
3. ff_put_pixels16_8_mmi
4. ff_avg_pixels16_8_mmi.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-04 21:47:56 +02:00
Shiyou Yin
61eeb40a62
avcodec: [loongson] fix bug of mss2-wmv failed in fate test.
...
Failed case: mss2-wmv
In following functions, pmullh was used to multiply two 16-bit data, this will cause data overflow.
1. ff_vc1_inv_trans_8x8_dc_mmi
2. ff_vc1_inv_trans_8x8_mmi
3. ff_vc1_inv_trans_8x4_mmi
4. ff_vc1_inv_trans_4x8_mmi
5. ff_vc1_inv_trans_4x4_mmi
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-04 02:30:51 +02:00
James Almer
022fa7a24e
Merge commit ' e1e3a12242'
...
* commit 'e1e3a12242 ':
libopenh264: Add support for decoding of b-frames
Merged-by: James Almer <jamrial@gmail.com>
2018-09-02 19:26:00 -03:00
James Almer
7167ac33a8
Merge commit ' c1bcd321ea'
...
* commit 'c1bcd321ea ':
avcodec/qsv: fix async support
Merged-by: James Almer <jamrial@gmail.com>
2018-09-02 19:23:26 -03:00
James Almer
2d62e06ff6
Merge commit ' b93026777a'
...
* commit 'b93026777a ':
libfdk-aac: Use enum names instead of literal numbers for the output format
Merged-by: James Almer <jamrial@gmail.com>
2018-09-02 19:20:36 -03:00
James Almer
8e789d244c
Merge commit ' 4ce701b4e6'
...
* commit '4ce701b4e6 ':
qsvenc: remove vcm option on Linux
Merged-by: James Almer <jamrial@gmail.com>
2018-09-02 19:12:52 -03:00
James Almer
aebc5b2284
Merge commit ' f8060865f3'
...
* commit 'f8060865f3 ':
qsvenc: use the compression_level to replace private option
Merged-by: James Almer <jamrial@gmail.com>
2018-09-02 19:12:18 -03:00
James Almer
b4ca32414e
Merge commit ' 35ed7f93db'
...
* commit '35ed7f93db ':
qsvenc: Add an option to disable MFE mode
Merged-by: James Almer <jamrial@gmail.com>
2018-09-02 19:10:49 -03:00
Michael Niedermayer
697984b9db
avcodec/h264_refs: Document last if() in ff_h264_execute_ref_pic_marking()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Michael Niedermayer
b544850a52
avcodec/h264_refs: Detect more random access points which are not marked
...
Fixes: nature_360-7501616eb5eafca5-1111.mp4
Reported-by: Thierry Foucu <tfoucu@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Michael Niedermayer
a73579c12d
iavcodec/zmbv: Avoid reallocating cur/prev buffers if they are large enough
...
Fixes: Timeout
Fixes: 9721/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-5650321660444672
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Michael Niedermayer
42f053494c
avcodec/zmbv: remove useless zero check on dimensions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Michael Niedermayer
c5e574a0d0
avcodec/ffv1dec_template: do not ignore the return code of decode_line()
...
Fixes: Timeout
Fixes: 9710/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFV1_fuzzer-4918894635515904
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Michael Niedermayer
0c88a5d3eb
avcodec/wmv2dec: skip frames that have only skiped MBs
...
This requires us to pre-parse the skip data, as we want to
detect this before allocating all the arrays
Fixes: Timeout
Fixes: 9708/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5729709861109760
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Michael Niedermayer
93a203662f
avcodec/ra144: Fix undefined integer overflow in add_wav()
...
Fixes: signed integer overflow: -26884 * 91439 cannot be represented in type 'int'
Fixes: 9687/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RA_144_fuzzer-4995588121690112
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Michael Niedermayer
7592e88bfe
avcodec/indeo4: Check dimensions in decode_pic_hdr()
...
Fixes: Timeout
Fixes: 9654/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO4_fuzzer-6289863463665664
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-03 00:01:32 +02:00
Shiyou Yin
93b35a0555
avcodec/mips: [loongson] optimize memset in h264dsp.
...
Optimized memset with mmi in following functions:
1. ff_h264_add_pixels4_8_mmi.
2. ff_h264_idct_add_8_mmi.
3. ff_h264_idct8_add_8_mmi.
This optimization improved h264 decoding performance about 1.3%(tested on loongson 3A3000).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-02 03:37:32 +02:00
Shiyou Yin
f91237baf6
avcodec/mips: [loongson] reoptimize h264_chroma_mc8_mmi v2.
...
Reoptimize function ff_put_h264_chroma_mc8_mmi and ff_avg_h264_chroma_mc8_mmi.
Performance of h264 decoding improved about 5%(from 69fps to 73fps, tested on loongson 3A3000).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-09-02 03:37:32 +02:00