Fix off-by-one bug when constructing the avcC header chunk: we wrote wrong profile info into the header. The first byte in the SPS NAL we get from x264 is the nal type, not the profile_idc. Also add some debug logging. Fixes #610089.
Fix off-by-one bug when constructing the avcC header chunk: we wrote wrong profile info into the header. The first byte in the SPS NAL we get from x264 is the nal type, not the profile_idc. Also add some debug logging. Fixes #610089.