GNOME Bugzilla – Bug 762328
vaapidecoder_h264: assumes buffers have a single NAL
Last modified: 2016-02-22 16:42:49 UTC
When receiving alignment=nal input it assumes there is a single NAL per buffer, it might not always be true and causes lots of data to be ignored.
Created attachment 321663 [details] [review] vaapidecoder_h264: fix parsing of NALU aligned data Don't assume the whole buffer is a single NAL, instead look for the next start code in case there are multiple NALs per buffer.
would we do the same in HEVC decoder?
(In reply to Víctor Manuel Jáquez Leal from comment #2) > would we do the same in HEVC decoder? Yes, I think this patch should be replicated there.
Created attachment 321699 [details] [review] vaapidecoder_h265: fix parsing of NALU aligned data Same patch for HEVC. I didn't test this one as I don't have any mpegts streams using HEVC but the fix is exactly the same as the one for H.264
[# Bug 762328 - vaapidecoder_h264: assumes buffers have a single NAL - NEW Attachment 321663 [details] pushed as 056a69c - vaapidecoder_h264: fix parsing of NALU aligned data Attachment 321699 [details] pushed as 1f71503 - vaapidecoder_h265: fix parsing of NALU aligned data