mirror of https://github.com/FFmpeg/FFmpeg.git
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]pull/293/mergea870e6a5c3
[2]21ff3ae0b0
[3] https://bugzilla.gnome.org/show_bug.cgi?id=748867 Signed-off-by: Aman Gupta <aman@tmm1.net>
parent
5aeb3b0080
commit
476fd6ba3a
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue