vaapidecode: h264: fix nal aligned streams
Submitted by Orestis Floros
Link to original bug (#786802)
Description
Running the following pipeline:
gst-launch-1.0 filesrc location=CI_MW_D.264 ! h264parse ! video/x-h264, stream-format=byte-stream, alignment=nal ! vaapih264dec ! vaapisink
seems to show only a single frame while the pipeline works correctly with au alignment:
gst-launch-1.0 filesrc location=CI_MW_D.264 ! h264parse ! video/x-h264, stream-format=byte-stream, alignment=au ! vaapih264dec ! vaapisink
A quick workaround seems to be to not mark the GST_H264_NAL_AU_DELIMITER units as AU and FRAME START which makes the above pipeline work but the problem still persists for other files such as BAMQ1_JVC_C.264.
Files from ITU-T_H.264.1(2016-02)_AVCv1_bitstreams.zip from https://www.itu.int/net/itu-t/sigdb/spevideo/VideoForm-s.aspx?val=102002641.