Files
ffmpeg/libavcodec
Aman Gupta 476fd6ba3a 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>
2018-08-03 11:06:46 -07:00
..
2018-04-30 21:50:12 +02:00
2018-07-03 20:15:01 +01:00
2018-07-27 20:07:45 +08:00
2018-07-22 10:19:03 +02:00
2018-07-18 13:59:25 +02:00
2018-07-18 13:59:25 +02:00
2018-04-19 22:59:40 +02:00
2018-02-24 17:06:31 +01:00
2018-02-24 17:06:31 +01:00
2018-07-27 20:07:45 +08:00
2018-04-25 23:09:47 +02:00
2018-05-25 20:09:22 +02:00
2018-02-24 17:06:31 +01:00
2018-07-27 20:07:45 +08:00
2018-03-29 00:05:52 -03:00
2018-05-10 23:03:50 +02:00
2018-05-05 21:35:31 +02:00
2018-03-07 22:26:53 +01:00
2018-02-24 04:50:55 +01:00
2018-07-23 02:58:38 +02:00
2018-02-21 23:38:30 +00:00
2018-02-21 23:38:30 +00:00
2018-04-25 22:07:20 +02:00
2018-07-27 20:07:45 +08:00