Re: [FFmpeg-devel] [PATCH] avcodec/mediacodec_sw_buffer: Fix segmentation fault with decoding on android oreo (corrected)

2018-07-31 Thread Aman Gupta
On Thu, Jul 19, 2018 at 10:08 AM Peter Bennett wrote: > This is a correction of the earlier submission of this patch. > > avcodec_receive_frame consistently causes a seg fault when decoding 1080i > mpeg2 > on android version oreo. When copying the frame, the second plane in the > buffer >

[FFmpeg-devel] [PATCH] avcodec/mediacodec_sw_buffer: Fix segmentation fault with decoding on android oreo (corrected)

2018-07-19 Thread Peter Bennett
This is a correction of the earlier submission of this patch. avcodec_receive_frame consistently causes a seg fault when decoding 1080i mpeg2 on android version oreo. When copying the frame, the second plane in the buffer follows on immediately after 1080 lines of the first plane, but the code

[FFmpeg-devel] [PATCH] avcodec/mediacodec_sw_buffer: Fix segmentation fault with decoding on android oreo

2018-07-19 Thread Peter Bennett
avcodec_receive_frame consistently causes a seg fault when decoding 1080i mpeg2 on android version oreo. When copying the frame, the second plane in the buffer follows on immediately after 1080 lines of the first plane, but the code assumes it is after 1088 lines of the first plane, based on