The current version of h264parse creates a wrong codecdata parameter since it
doesn't use the correct index to extract information like profile_idc,
profile_compability and level_idc from the sequence parameter set (SPS) created
by the H264 encoder, causing problems to identify (in the decoder side) the
profile that was used to encode the stream, as result the decoder won't be able
to decode the stream properly. Attached to this post you will find a patch to
solve this problem.
This bug has been reported on gstreamer as well: