James Almer
b53ac2a528
avcodec/extract_extradata_bsf: use the parsing code from mpeg4video_split()
...
It's a simplifaction of the same code, originally commited as 3b5ad8fbf7 .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-25 22:38:13 -03:00
James Almer
173fdc4dea
avcodec/extract_extradata_bsf: use the parsing code from vc1_split()
...
It's a simplifaction of the same code, originally commited as b4b9a64bdb .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-25 22:38:13 -03:00
James Almer
ec996163c8
avcodec/extract_extradata_bsf: use the parsing code from mpegvideo_split()
...
Changes to the parsing code originally committed to mpegvideo_parser.c
in 73fb23dc5a .
Required by some samples, like PVA_test-partial.pva
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-25 22:38:13 -03:00
James Almer
f5c8d004c2
avcodec: stop using deprecated codec flags
...
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-25 21:37:05 -03:00
Carl Eugen Hoyos
66c1c9b277
lavc/xface: Reorder conditions to silence a gcc warning.
...
libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
2017-03-24 19:51:36 +01:00
Michael Niedermayer
d92ad42fb3
avcodec/tests/celp_math: Change IsAlmostEqual() to a function
...
Fixes empty statement, found by ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-24 18:18:57 +01:00
Thomas Turner
824fe914fe
avcodec/tests: added test for celp_math.c
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-24 17:31:38 +01:00
Paul B Mahol
e1940d2458
avcodec/dnxhd_parser: take into account compressed frame size and skip it
...
Fixes #6214 and vsynth1-dnxhd-720p-hr-lb.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2017-03-24 15:44:01 +01:00
James Almer
ac42f08099
x86/hevc_add_res: merge missing changes from 3d65359832
...
Unrolling the loops triplicates the size of the assembled output
while not generating any gain in performance.
2017-03-24 11:24:18 -03:00
Clément Bœsch
46f4f8ad86
Merge commit ' 1263b2039e'
...
* commit '1263b2039e ':
Adjust printf conversion specifiers to match variable signedness
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-24 13:34:39 +01:00
Clément Bœsch
e809c2e40d
Merge commit ' 47756f51fe'
...
* commit '47756f51fe ':
dnxhdenc: Drop pointless, commented-out debug output
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-24 13:18:24 +01:00
Clément Bœsch
4c840c249d
Merge commit ' 0574780d7a'
...
* commit '0574780d7a ':
h264_loopfilter: Do not print value of uninitialized variable
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-24 13:15:15 +01:00
Clément Bœsch
fe7cae3880
Merge commit ' 2555269985'
...
* commit '2555269985 ':
mpegaudio: Do not print value of uninitialized variable
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-24 13:14:03 +01:00
Clément Bœsch
3d65359832
Merge commit ' 6d5636ad9a'
...
* commit '6d5636ad9a ':
hevc: x86: Add add_residual() SIMD optimizations
See a6af4bf64d
This merge is only cosmetics (renames, space shuffling, etc).
The functionnal changes in the ASM are *not* merged:
- unrolling with %rep is kept
- ADD_RES_MMX_4_8 is left untouched: this needs investigation
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-24 12:33:25 +01:00
Clément Bœsch
40ac226014
lavc/x86/hevc: rename hevc_res_add to hevc_add_res
...
This will simplify incoming merge.
2017-03-24 11:45:23 +01:00
Clément Bœsch
0b3decc596
Merge commit ' 0d9b9bd37f'
...
* commit '0d9b9bd37f ':
lavu: Add JEDEC P22 color primaries
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-24 11:21:46 +01:00
James Almer
dc39ccdc3b
Merge commit ' 0bfdcce4d4'
...
* commit '0bfdcce4d4 ':
hevc: move the SliceType enum to hevc.h
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 20:02:11 -03:00
James Almer
bac44a5020
Merge commit ' b89804da9b'
...
* commit 'b89804da9b ':
x86: videodsp: Add parentheses to expression to work around warning
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 18:35:49 -03:00
James Almer
09a80419b7
Merge commit ' 58224dc5f3'
...
* commit '58224dc5f3 ':
ppc: avcodec: Drop silly "_ppc" suffixes from files in ppc subdirectories
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 18:17:45 -03:00
James Almer
c43fd1f279
Merge commit ' f9bb356e0e'
...
* commit 'f9bb356e0e ':
vaapi_h265: Include header for slice types
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 18:08:41 -03:00
James Almer
29db87af52
Merge commit ' 6be7944ee2'
...
* commit '6be7944ee2 ':
x86: Add missing colons after assembly labels
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 18:05:27 -03:00
James Almer
7ebc9f8df4
Merge commit ' 89b35a139e'
...
* commit '89b35a139e ':
lavc: add a bitstream filter for extracting extradata from packets
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 16:31:15 -03:00
James Almer
4a5810b659
Merge commit ' f6e2f8a9ff'
...
* commit 'f6e2f8a9ff ':
hevcdec: move parameter set parsing into a separate header
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 15:53:00 -03:00
James Almer
b29c8c995f
Merge commit ' 150c896a9e'
...
* commit '150c896a9e ':
hevcdec: split ff_hevc_diag_scan* declarations into a separate header
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 15:14:06 -03:00
James Almer
5c6efaffd0
avcodec/hevc: add missing hevc.h header
...
It was lost as part of a merge in 6397815be0 .
2017-03-23 15:07:28 -03:00
James Almer
6397815be0
Merge commit ' c359d624d3'
...
* commit 'c359d624d3 ':
hevcdec: move decoder-independent declarations into a separate header
Merged-by: James Almer <jamrial@gmail.com>
2017-03-23 14:27:48 -03:00
James Almer
a1a80a6c9c
avcodec/bytestream: check for AV_HAVE_BIGENDIAN instead of HAVE_BIGENDIAN
...
No need to include config.h for HAVE_BIGENDIAN when libavutil/avconfig.h
is already included.
2017-03-23 14:26:44 -03:00
Timo Rothenpieler
d84c2298e2
avcodec/nvenc: apply quantization factors to cqp
2017-03-23 17:10:52 +01:00
Timo Rothenpieler
7fb2a7afa1
avcodec/nvenc: Deprecate usage of global_quality, introducing qp
2017-03-23 17:10:52 +01:00
Clément Bœsch
038e6aef7a
Merge commit ' 4abe3b049d'
...
* commit '4abe3b049d ':
hevc: rename hevc.[ch] to hevcdec.[ch]
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 16:48:41 +01:00
Clément Bœsch
cc012c46e8
Merge commit ' 14e7e19a90'
...
* commit '14e7e19a90 ':
lavc: bsf: Document input/output codecparam alloc/init process
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 16:03:43 +01:00
Clément Bœsch
947230837c
Merge commit ' 112cee0241'
...
* commit '112cee0241 ':
hevc: Add SSE2 and AVX IDCT
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 15:58:46 +01:00
James Almer
05510ec067
avcodec/videotoolboxenc: remove unused atomic header
...
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-23 11:51:00 -03:00
James Almer
005da88c1e
avcodec/mediacodec: convert to stdatomic
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-23 11:44:58 -03:00
Michael Niedermayer
4f727fbc73
avcodec/h264_ps: Fix runtime error: signed integer overflow: 2147483647 + 26 cannot be represented in type 'int'
...
Fixes: 902/clusterfuzz-testcase-4561155144024064
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>
2017-03-23 15:25:48 +01:00
Michael Niedermayer
0f34c0789f
avcodec/pictordec: runtime error: left shift of 15 by 28 places cannot be represented in type 'int'
...
Fixes: 898/clusterfuzz-testcase-6149765467209728
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-23 15:25:48 +01:00
Michael Niedermayer
3182e19c1c
avcodec/tiff: Check geotag count for being non zero
...
Fixes memleak
Fixes: 874/clusterfuzz-testcase-5252796175613952
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-23 15:25:48 +01:00
Clément Bœsch
739d8c83f2
Merge commit ' 9b2ccafb48'
...
* commit '9b2ccafb48 ':
aarch64: Add missing sign extension in ff_h264_idct8_add_neon
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 12:15:39 +01:00
Clément Bœsch
733b13ad66
Merge commit ' e4128c08d7'
...
* commit 'e4128c08d7 ':
Revert "hevc: x86: Refactor IDCT macro declarations"
So apparently this was technically correct be reverted due to
authorship. Reverted as well in FFmpeg for now...
See http://lists.libav.org/pipermail/libav-devel/2016-October/079560.html
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 12:03:25 +01:00
Clément Bœsch
4bb4fa28e3
Merge commit ' 5801f9ed24'
...
* commit '5801f9ed24 ':
h264_intrapred: x86: Update comments left behind in 95c89da36e
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 11:58:01 +01:00
Clément Bœsch
9954d5b44e
Merge commit ' d9dccc0389'
...
* commit 'd9dccc0389 ':
hevc: x86: Refactor IDCT macro declarations
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 11:54:53 +01:00
Clément Bœsch
5f044d2372
Merge commit ' c19830aa2c'
...
* commit 'c19830aa2c ':
rscc: Support palette format
See 11777eb814
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 11:33:27 +01:00
Clément Bœsch
7b3a3e6276
Merge commit ' b8d5070db6'
...
* commit 'b8d5070db6 ':
avcodec: Document AV_PKT_DATA_PALETTE side data type
Merged-by: Clément Bœsch <u@pkh.me>
2017-03-23 11:27:41 +01:00
wm4
7e4ba776a2
lavc: vdpau: Add support for new hw_frames_ctx and hw_device_ctx API
...
This supports retrieving the device from a provided hw_frames_ctx, and
automatically creating a hw_frames_ctx if hw_device_ctx is set.
The old API is not deprecated yet. The user can still use
av_vdpau_bind_context() (with or without setting hw_frames_ctx), or use
the API before that by allocating and setting hwaccel_context manually.
Cherry-picked from Libav commit 1a7ddba5 .
(Adds missing APIchanges entry to the Libav version.)
Reviewed-by: Mark Thompson <sw@jkqxz.net>
2017-03-23 09:36:42 +01:00
wm4
156bd8278f
lavc: Add hwaccel_flags field to AVCodecContext
...
This "reuses" the flags introduced for the av_vdpau_bind_context() API
function, and makes them available to all hwaccels. This does not affect
the current vdpau API, as av_vdpau_bind_context() should obviously
override the AVCodecContext.hwaccel_flags flags for the sake of
compatibility.
Cherry-picked from Libav commit 16a163b5 .
Reviewed-by: Mark Thompson <sw@jkqxz.net>
2017-03-23 09:34:21 +01:00
James Almer
30cadfe071
avcodec/lossless_videodsp: use ptrdiff_t for length parameters
...
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-22 18:38:35 -03:00
Mark Thompson
9560766a61
vaapi_vp9: Mark as async-safe
2017-03-22 19:07:32 +00:00
Mark Thompson
14c1101518
vaapi_hevc: Mark as async-safe
2017-03-22 19:07:32 +00:00
Mark Thompson
81b7deab82
vaapi: Implement device-only setup
...
In this case, the user only supplies a device and the frame context
is allocated internally by lavc.
(cherry picked from commit 5dd9a4b88b )
2017-03-22 19:07:32 +00:00
Diego Biurrun
6ff3da4f6a
Place attribute_deprecated in the right position for struct declarations
...
libavcodec/vaapi.h:58:1: warning: attribute 'deprecated' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]
(cherry picked from commit ed6a891c36 )
Signed-off-by: Mark Thompson <sw@jkqxz.net>
2017-03-22 19:07:32 +00:00