[mythtv-commits] Ticket #13233: Android Hardware accelerated decode

MythTV noreply at mythtv.org
Sun Jul 29 19:12:43 UTC 2018

#13233: Android Hardware accelerated decode
 Reporter:  Peter Bennett    |          Owner:  Peter Bennett
     Type:  Developer Task   |         Status:  assigned
 Priority:  minor            |      Milestone:  unknown
Component:  Ports - Android  |        Version:  Master Head
 Severity:  medium           |     Resolution:
 Keywords:                   |  Ticket locked:  0

Comment (by Peter Bennett <pbennett@…>):

 In [changeset:"88eb4ef872c9e8cd17bf81174b1d4e92de23641e/mythtv"
 #!CommitTicketReference repository="mythtv"
 FFmpeg avcodec: Fix segmentation fault with decoding on android oreo

 avcodec_receive_frame consistently causes a seg fault when decoding 1080i
 on android version oreo. When copying the frame, the second plane in the
 follows on immediately after 1080 lines of the first plane, but the code
 it is after 1088 lines of the first plane, based on slice_height. It
 crashes on
 copying data for the second plane when it hits the actual end of the data
 starts accessing addresses beyond that.

 Instead of using slice_height here, change to use use height. slice_height
 used at other places in this module and I do not know if they also need to
 changed. I have confirmed that with this change, decoding works correctly
 on android oreo as well as on the prior version, android nougat.

 Refs #13233

Ticket URL: <https://code.mythtv.org/trac/ticket/13233#comment:18>
MythTV <http://www.mythtv.org>
MythTV Media Center

More information about the mythtv-commits mailing list