avcodec/h264_parse: retry decoding SPS with complete NAL
authorJun Li <junli1026@gmail.com>
Thu, 22 Aug 2019 20:58:30 +0000 (13:58 -0700)
committerJames Almer <jamrial@gmail.com>
Fri, 23 Aug 2019 15:26:28 +0000 (12:26 -0300)
commit0b34cdf424d665d7d9b92aefdff49a5acc398a6d
tree77e8c6f96c5f4406f61228c555fa6d943d31ee96
parent92c32b0f0c3e70d809e56be6c56cf1697cc259f9
avcodec/h264_parse: retry decoding SPS with complete NAL

Fix #6591
The content has no rbsp_stop_one_bit for ending the SPS, that
causes the decoding SPS failure, results decoding frame failure as well.

The patch is just adding a retry with complete NALU, copied from the retry in decode_nal_unit()

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/h264_parse.c