avcodec/utils: Check that the data is complete in avpriv_bprint_to_extradata()