[FFmpeg-trac] #9929(avcodec:new): ff_color_frame null pointer exception
FFmpeg
trac at avcodec.org
Tue Sep 20 12:21:19 EEST 2022
#9929: ff_color_frame null pointer exception
-------------------------------------+-------------------------------------
Reporter: Andrzej | Type: defect
Szombierski |
Status: new | Priority: normal
Component: avcodec | Version:
| unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
I'm investigating a crash in a complex application, so my apologies for
not providing a small repro case.
I'm decoding a H264 NAL stream with ffmpeg without any HW acceleration.
The pixel format is set to NV12. When attempting to decode the first
frame, I get a null pointer exception in ff_color_frame, specifically in
memset. ff_copy_frame is attempting to access frame->data[2], which is
null for NV12.
It seems that the function assumes that each color component corresponds
to one plane, which is clearly not the case for NV12.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9929>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list