[FFmpeg-trac] #10894(undetermined:new): FFmpeg can't handle h264 NAL units that are split between packets
FFmpeg
trac at avcodec.org
Tue Mar 5 20:57:29 EET 2024
#10894: FFmpeg can't handle h264 NAL units that are split between packets
-------------------------------------+-------------------------------------
Reporter: Rokolell | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
When a NAL unit is split between AVPackets, FFmpeg fails to decode it
properly, causing graphical glitching.
How to reproduce:
- Download the provided archive with example data.
- Compile test.c with
{{{
gcc -lavcodec -lavutil -g test.c -o test
}}}
- Run the test with
{{{
./test .
}}}
- View 420-440.yuv420p in your preferred raw image viewer to see the
glitches. The resolution for each frame is shown by the example program.
Example:
[[Image(https://cdn.discordapp.com/attachments/1196894597515849779/1212588460393766993/w0j6RKS8ejPgAAAABJRU5ErkJggg.png?ex=65f26201&is=65dfed01&hm=9e2019ff51bc82a08ae80f2a15d50d4fc93051f2419ec3cf1a9d2fe7ff0aa0b9,
480px)]]
Example result created by the Windows Media Foundation Decoder (which can
handle these packets perfectly fine):
[[Image(https://cdn.discordapp.com/attachments/474680786373836801/1214646770525544480/windows-11.png?ex=65f9def5&is=65e769f5&hm=e58da1a2c33e0920b03ecd1477fea0ccb70b89c7b02441fda4ec6c2ebae31b81&,
480px)]]
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10894>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list