Files
FFmpeg/libavcodec
Aman Gupta fab3418cb9 avcodec/mediacodecdec: fix SEGV on modern nvidia decoders
This code came originally from gstreamer, where it was added in [1]
as a work-around for the Tegra 3. (The alignment was changed in [2]
as a response to [3], from 32-bit to 16-bit).

gstreamer only used this workaround in the case where the decoder
didn't return a slice-height property, but when the code was copied
into avcodec the conditional got lost. This commit restores the guard
and prefers the slice-height from the decoder when it is available.

This fixes segfaults decoding 1920x1080 h264 and mpeg2 videos on the
NVidia SHIELD after upgrading to Android Oreo.

[1] a870e6a5c3
[2] 21ff3ae0b0
[3] https://bugzilla.gnome.org/show_bug.cgi?id=748867

Signed-off-by: Aman Gupta <aman@tmm1.net>
(cherry picked from commit 476fd6ba3a)
2018-08-03 11:07:31 -07:00
..
2018-05-01 21:22:03 +02:00
2017-07-16 16:53:02 +02:00
2018-02-09 22:10:56 +01:00
2017-10-03 19:47:37 -03:00
2017-07-07 15:23:58 -04:00
2018-04-20 01:53:41 +02:00
2017-11-09 19:49:32 +01:00
2017-07-07 15:29:57 -04:00
2018-02-24 17:06:31 +01:00
2018-02-24 17:06:31 +01:00
2018-03-29 00:05:52 -03:00
2018-01-05 03:35:48 +01:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2018-06-15 22:31:13 +02:00
2017-08-30 12:13:01 +02:00
2017-09-16 19:55:03 +02:00
2017-08-30 12:13:01 +02:00
2017-07-12 20:36:13 +02:00
2017-07-12 20:36:13 +02:00
2017-12-10 14:43:01 +01:00
2018-02-24 17:06:31 +01:00
2017-12-11 00:42:26 -03:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2017-12-10 14:43:01 +01:00
2018-01-03 13:00:06 -05:00
2017-07-20 08:24:46 +01:00
2018-03-07 22:26:53 +01:00
2018-03-29 00:05:52 -03:00
2018-03-29 00:05:52 -03:00
2017-12-19 23:22:35 +00:00
2017-08-07 13:09:41 +02:00
2017-07-26 06:13:05 +07:00
2017-07-11 13:22:02 +07:00
2018-03-07 22:26:53 +01:00
2017-09-22 01:33:22 +02:00
2018-02-24 04:50:55 +01:00
2017-10-04 23:14:37 +01:00
2018-02-21 23:38:30 +00:00
2018-02-21 23:38:30 +00:00
2017-07-14 02:30:37 +02:00
2017-07-14 02:30:37 +02:00
2017-12-19 23:21:59 +00:00
2017-12-19 23:21:59 +00:00
2017-09-22 01:33:22 +02:00
2017-10-03 19:47:37 -03:00
2017-07-24 17:52:42 +02:00