[FFmpeg-devel] [PATCH] lavc/vp8: Fix HWAccel VP8 decoder can't support resolution change.

Jun Zhao mypopydev at gmail.com
Wed Nov 29 02:54:49 EET 2017



On 2017/11/29 7:09, Michael Niedermayer wrote:
> On Tue, Nov 28, 2017 at 01:20:59PM +0800, Jun Zhao wrote:
>>  vp8.c |   46 ++++++++++++++++++++++++++++++++++------------
>>  1 file changed, 34 insertions(+), 12 deletions(-)
>> d548af3b82a9d77f67fe9621fc7aeee0392fcc89  0001-lavc-vp8-Fix-HWAccel-VP8-decoder-can-t-support-resol.patch
>> From 94d511d93fdb83103fdafbd9ca0d02abfbd2e305 Mon Sep 17 00:00:00 2001
>> From: Jun Zhao <jun.zhao at intel.com>
>> Date: Tue, 28 Nov 2017 21:05:18 +0800
>> Subject: [PATCH] lavc/vp8: Fix HWAccel VP8 decoder can't support resolution
>>  change.
>>
>> Use the following command to reproduce this issue:
>> make fate-vp8-size-change HWACCEL="vaapi -vaapi_device \
>> /dev/dri/renderD128 -hwaccel_output_format yuv420p"
>> SAMPLES=../fate-suite/.
>>
>> At the same time, reconstruct the public logic as a function.
>>
>> Signed-off-by: Yun Zhou <yunx.z.zhou at intel.com>
>> Signed-off-by: Jun Zhao <jun.zhao at intel.com>
>> ---
>>  libavcodec/vp8.c | 46 ++++++++++++++++++++++++++++++++++------------
>>  1 file changed, 34 insertions(+), 12 deletions(-)
> Causes fate-webp-rgba-lossy-q80 to segfault
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000ceee65 in vp8_lossy_decode_alpha (avctx=0x21c7da0, p=0x21c8980, data_start=0x21caa67 "\027 \020HR\331\037r\215\210\b\a\261`r\a8\177\235\020\"\372\037\064\001VP8 R", data_size=25) at libavcodec/webp.c:1312
> 1312                    *pp = *ap;
> (gdb) bt
> Python Exception <type 'exceptions.ImportError'> No module named gdb.frames:
> #0  0x0000000000ceee65 in vp8_lossy_decode_alpha (avctx=0x21c7da0, p=0x21c8980, data_start=0x21caa67 "\027 \020HR\331\037r\215\210\b\a\261`r\a8\177\235\020\"\372\037\064\001VP8 R", data_size=25) at libavcodec/webp.c:1312
> #1  0x0000000000cef050 in vp8_lossy_decode_frame (avctx=0x21c7da0, p=0x21c8980, got_frame=0x7fffffffd648, data_start=0x21caa88 "\320\001", data_size=82) at libavcodec/webp.c:1362
> #2  0x0000000000cef357 in webp_decode_frame (avctx=0x21c7da0, data=0x21c8980, got_frame=0x7fffffffd648, avpkt=0x21c8ca0) at libavcodec/webp.c:1421
> #3  0x0000000000875781 in decode_simple_internal (avctx=0x21c7da0, frame=0x21c8980) at libavcodec/decode.c:398
> #4  0x0000000000876408 in decode_simple_receive_frame (avctx=0x21c7da0, frame=0x21c8980) at libavcodec/decode.c:594
> #5  0x00000000008764d3 in decode_receive_frame_internal (avctx=0x21c7da0, frame=0x21c8980) at libavcodec/decode.c:612
> #6  0x000000000087674b in avcodec_send_packet (avctx=0x21c7da0, avpkt=0x7fffffffd7f0) at libavcodec/decode.c:674
> #7  0x00000000007be3e1 in try_decode_frame (s=0x21c6420, st=0x21c7480, avpkt=0x7fffffffd9a0, options=0x21c6e20) at libavformat/utils.c:3007
> #8  0x00000000007c174a in avformat_find_stream_info (ic=0x21c6420, options=0x21c6e20) at libavformat/utils.c:3832
> #9  0x00000000004154a5 in open_input_file (o=0x7fffffffdcf0, filename=0x7fffffffe688 "/home/michael/fatesamples/fate/fate-suite//webp/rgba_q80.webp") at fftools/ffmpeg_opt.c:1091
> #10 0x000000000041f061 in open_files (l=0x21c5d78, inout=0x11fa077 "input", open_file=0x4149d3 <open_input_file>) at fftools/ffmpeg_opt.c:3296
> #11 0x000000000041f1f3 in ffmpeg_parse_options (argc=17, argv=0x7fffffffe308) at fftools/ffmpeg_opt.c:3336
> #12 0x000000000043d5d2 in main (argc=17, argv=0x7fffffffe308) at fftools/ffmpeg.c:4837
>
> [...]
Will check the segmentation fault, Tks.
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list