GNOME Bugzilla – Bug 703930
decoder: h264: improve robustness with missing or corrupted NALUs
Last modified: 2013-12-10 15:18:22 UTC
Created attachment 248811 [details] [review] 0001-h264-reset-got_-sps-pps-when-corrupted-SPS-PPS-heade skip stream parsing/decoding when there is corrupt sps/pps until a future correct one reset got_sps/got_pps when there are corrupted sps/pps header. this can stop (incorrect) slice parsing and frame decoding until there is a new valid one. we can see this bug in fd.o https://bugs.freedesktop.org/show_bug.cgi?id=57902
Hi, I would like another "robustify" patch more in line with what we have for MPEG-2 and JPEG decoders. e.g. you state masks to check we have the required headers parsed prior to decoding for real.
Changed summary to something more useful and on par with what needs to be done.
Fixed in git master branch, while gracefully dropping invalid frames.
commit 6fe54964bba22a415424839299ae5a2635f3d24e Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Date: Tue Dec 10 16:14:27 2013 +0100 h264: improve robustness when packets are missing. Improve robustness when some expected packets where not received yet or that were not correctly decoded. For example, don't try to decode a picture if there was no valid frame headers parsed so far. https://bugzilla.gnome.org/show_bug.cgi?id=703930